Want to assign static IP addresses for ethernet and wifi interfaces (eth0 & wlan0) for raspberry pi3 board.
And I have to try with latest stretch raspian lite version image.
I will do the below commands in script while creating SD card image file, so that every image has their own wifi network IP addresses.
Able to ping the both addresses if I connect the ethernet cable, btw, I also should use this method in raspberry pi zero board too (i.e only WLAN0)
sudo echo "auto eth0
iface eth0 inet static
gateway $ETH0_GATEWAY" >> $PWD/rootfs/etc/network/interfaces
sudo echo "allow-hotplug wlan0
iface wlan0 inet static
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf" >> $PWD/rootfs/etc/network/interfaces
sudo echo -e "update_config=1
} " >> $PWD/rootfs/etc/wpa_supplicant/wpa_supplicant.conf
Can you please help me on this ?