0

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

Joshua Salazar
  • 131
  • 1
  • 6

1 Answers1

1

I don't think this is what you want to do... you've only got one wifi adapter, so both IP addresses will have the same MAC address. That's allowable, but without some routing/networking configuration, it may not accomplish your objective - whatever that is.

Seamus
  • 23,558
  • 5
  • 42
  • 83