auto eth0 iface eth0 inet static address 192.168.0.7 netmask 255.255.255.0 gateway 192.168.0.1 up /sbin/route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.2 down /sbin/route del -net 10.0.0.0 netmask 255.0.0.0