Debian / Ubuntu Linux static routing for two interfaces: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.9.38.76 netmask 255.255.255.240 network 10.9.38.64 broadcast 10.9.38.79 ### static routing ### post-up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.9.38.65 pre-down route del -net 10.0.0.0 netmask 255.0.0.0 gw 10.9.38.65 auto eth1 iface eth1 inet static address 204.186.149.140 netmask 255.255.255.240 network 204.186.149.128 broadcast 204.186.149.143 gateway 204.186.149.129 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.80.11 10.0.80.12 dns-search nixcraft.in