I am having a problem getting the config to work with dual ethernet, the contents of the interfaces file is attached below, i am running ubuntu 9.10 and have removed the network manager.
I need all traffic to a 10.0.2 or 10.0.1 to go via eth1 and everything else via eth0.
With the current config the default route is via eth1, if i remove the bottom line it works how i want apart from 10.0.2.x goes via eth0
iface lo inet loopback
iface eth0 inet static
up route add default 192.168.20.1
iface eth1 inet static
up route add -net 10.0.2.0 netmask 255.255.255.0 gw 10.0.1.1 dev eth1