Re: VLAN routing problems in CEntOS 6
Posted by kul3ana on 2011/12/7 19:34:04
Thanks jlehtone. although the other source routing issues recently listed weren't exactly like
my situation, there was enough info in them to apply to my situation. The bottom line is that
it is a iproute2 issue. I implemented all my interfaces using iproute commands in the ifcfg.
Using the previous config files as is, I needed to add 4 more commands to add the 2 rules/tables.
These were :
ip route add default via 184.108.40.206 dev vlan158 table 1
ip route add default via 220.127.116.11 dev vlan159 table 2
ip rule add from 18.104.22.168 tab 1 priority 500
ip rule add from 22.214.171.124 tab 2 priority 501
So now the question is where do I put these commands so they get implemented at boot up.
I know I can put them in the rc.local file, but I figured there must be a proper place to implement
these iproute2 commands. i.e. /etc/iproute2/rt_tables...
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=58&topic_id=34611&post_id=148893