I did configure a static IP for my home wifi connection, but now I wanna add another static IP for using it in another network but I don't know how to do it.
Right now I have the following configuration for my home:
/etc/network/interfaces
iface wlan0 inet static
address 192.168.100.100
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
gateway 192.168.100.1
But I want to add for my outside network as this:
iface wlan0 inet static
address 10.20.15.51
netmask 255.255.255.0
network 10.20.15.0
broadcast 10.20.15.255
gateway 10.20.15.1
Any suggestion? I am running Raspbian over NOOBS, on a Rasbperry Pi 3
wlan0
two ip addresses or do you want two interfaceswlan0
andwlan1
, each with its ip address? – Ingo Apr 10 '18 at 14:53For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'"? And lastly WHY static -
– Milliways Apr 10 '18 at 23:18DHCP
should work automatically?