[CentOS] Multiple Internet facing Nics - Gateway issue

Thu Jul 2 02:25:40 UTC 2009
Christopher Chan <christopher.chan at bradbury.edu.hk>

Hello Doug,

Here are the iproute2 commands for a multigateway setup I did.

ip route add 220.232.217.72/29 dev eth0  proto kernel  scope link src 
220.232.217.78 table pacific
ip route add 10.9.0.0/17 dev eth1  proto kernel  scope link src 
10.9.1.101 table pacific
ip route add default via 220.232.217.73 dev eth0 table pacific
ip route add 203.174.45.24/29 dev eth2  proto kernel  scope link src 
203.174.45.30 table wharf
ip route add 10.9.0.0/17 dev eth1  proto kernel  scope link src 
10.9.1.101 table wharf
ip route add default via 203.174.45.25 dev eth2 table wharf
ip route add 59.152.193.16/29 dev eth2  proto kernel  scope link src 
59.152.193.22 table frahw
ip route add 10.9.0.0/17 dev eth1  proto kernel  scope link src 
10.9.1.101 table frahw
ip route add default via 59.152.193.17 dev eth2 table wharf
ip route add 10.9.0.0/17 dev eth1  proto kernel  scope link src 
10.9.1.101 table saurer
ip route add 10.0.0.0/8 via 10.9.0.1 dev eth1 table saurer

ip rule add from 220.232.217.78 to default lookup pacific
ip rule add from 203.174.45.30 to default lookup wharf



You may also want to check your firewall rules too.


I must also say that there are no GATEWAY entries in my ifcfg-ethx. Only 
one in network.