5

Set up different static IP addresses for different networks

view full story
linux-howto

http://askubuntu.com – I'm relatively inexperienced with networking, but I know what I want to achieve in this case. I have a computer that I physically move between two separate local networks, but when the computer is on one of those networks I want to assign a different static IP address to the machine. One internal network is 192.168.1.0, and the other is 192.168.2.0. Therefore, I want one static IP address to be 192.168.1.x and the other to be 192.168.2.x. Is there a way of assigning two static IPs, but with only one taking effect depending on the network its connected to? Can this be done purely in /etc/netw (HowTos)