#!/linuxSucks/Setup Network interfaces for Raspberry Pi
Aug 12, 2019Setup a static network IP address on your raspberry pi using interfaces. Open the file in any text editor /etc/network/interfaces add or change the values to your needs.
auto eth0
iface eth0 inet static
address 10.1.1.30
netmask 255.255.255.0
gateway 10.1.1.1
allow-hotplug wlan0
iface wlan0 inet static
address 10.1.1.31
netmask 255.255.255.0
gateway 10.1.1.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Save the file and restart your raspberry pi.