Re: Multiple Internet facing Nics - Gateway issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux