Sunday, October 25, 2009

Switch between networks

My /etc/network/interfaces:

auto lo
iface lo inet loopback

mapping eth0
map ARENALES eth0-arenales
map AGUERO eth0-aguero

iface eth0-arenales inet static
address 10.120.10.7
netmask 255.255.255.240
network 10.120.10.0
broadcast 10.120.10.15
gateway 10.120.10.1
dns-nameservers 10.120.10.1

iface eth0-aguero inet dhcp

# EoF #

Exceute this to setup the network on each network:

sudo ifup eth0=eth0-arenales
sudo ifup eth0=eth0-aguero

Labels: , , , ,

0 Comments:

Post a Comment

<< Home