[CentOS] Multiple Internet facing Nics - Gateway issue

Thu Jul 2 06:05:23 UTC 2009
Doug Coats <dcoatshca at gmail.com>

I am ecstatically confused.

After I entered the last two commands my routing is working the way that I
need it to.

ip rule add from 173.11.51.46 table Cable
ip rule add from 67.152.166.2 table T1

The problem is I don't know which actual commands worked.  I had just
rebooted.  The other ip commands were all in the rc.local file so they all
ran.

Why did the above commands make the Cable and T1 rules show up in the rules
list but the following two did not?

ip route add 173.11.51.44/30 dev eth2 src 173.11.51.45 table Cable
ip route add 67.152.166.0/27 dev eth3 src 67.152.166.2 table T1
Do I need all of the commands?  So that what is in rc.local looks like this?

ip rule add from 173.11.51.46 table Cable
ip route add 173.11.51.44/30 dev eth2 src 173.11.51.45 table Cable
ip route add default via 173.11.51.45 table Cable
ip route add 173.11.51.44/30 dev eth2 src 173.11.51.45
ip route add default via 173.11.51.46
ip rule add from 173.11.51.45 to default lookup Cable
ip rule add from 67.152.166.2 table T1
ip route add 67.152.166.0/27 dev eth3 src 67.152.166.2 table T1
ip route add default via 67.152.166.2 table T1
ip route add 67.152.166.0/27 dev eth3 src 67.152.166.2
ip rule add from 67.152.166.2 to default lookup T1
ip route flush cache
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20090702/317cedb0/attachment-0005.html>