How to make persistent iproutes using iproute2
I would like to have the below lines loaded at bootup and anytime the network is restarted (if possible).
Code:
ip rule add from 10.8.64.137 table T1 Thanks |
Solved
Never mind I figured it out.
man ifcfg explains that there is an option POST_UP_SCRIPT. So in /etc/sysconfig/network/ifcfg-eth3 I added: Code:
POST_UP_SCRIPT='/etc/sysconfig/network/scripts/ifup-route.eth3' Code:
POST_DOWN_SCRIPT='/etc/sysconfig/network/scripts/ifdown-route.eth3' |
All times are GMT -5. The time now is 12:15 PM. |