I have ubuntu 12.04 and I have configured /etc/network/interfaces like this
auto eth2
iface eth2 inet dhcp
I also have
auto eth1
iface eth1 inet static
address 60.60.60.1
netmask 255.255.255.0
network 60.60.60.0
broadcast 60.60.60.255
and eth0 is similarly configured.
When I do sudo route I don't see default gw.
I just see 60.60.60.0 * 255.255.255.0 eth1
and similarly
10.0.0.0 * 255.255.255.0 U 0 0 0 eth2
Since the default gw is not present, I have got a proper 10.x.x.x IP address but no way to connect outside . How do I get the default gw automatically setup. I can add it using route add default gw and that works. But when I move locations, then I will have to keep on setting route add at every place manually