This question already has an answer here:
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