I have a linux box (2.6.9 kernel). problembox has 2 nics, A and B, with A's IP = and B's IP = 10.1.1.1. I want to be the default (for things such downloads via apt-get and to be used for communications to other boxes on the network.
The network is used for backups and admin with backupbox that has the IP of and webbox that has the IP of 10.1.1.3. The 10.1.1.x network is connected to a unmanaged switch. Backupbox is the backup manager and can connect to and do its backup, but cannot connect to at all. I have no firewall on 10.1.1.1.
For problembox, my interface config file looks like:
eth0
ip
sub
gw
eth1
ip
sub
gw
I've tried to put in:
ip route add default via dev eth0 tab 1
ip route add default via dev eth1 tab 2
ip rule add to tab 1 priority 500
ip rule add to tab 2 priority 600
ip route flush cache
but no go; I've even tried to put in two gateways (where eth1 gw=).
What am I missing?