'm using last version of centos 7. i try to add the following rule and routes:
ip route add default via 172.31.32.1 dev eth1 tab 2
ip rule add from 172.31.38.228/32 tab 2
ip rule add to 172.31.38.228/32 tab 2
when i type it manually it's working. by on device route and rule it's not working at all.
/etc/sysconfig/network-scripts/route-eth1:
efault via 172.31.32.1 dev eth1
/etc/sysconfig/network-scripts/rule-eth1
from 172.31.38.228/32 100
to 172.31.38.228/32 100
i try many things, but it is only working when i type it. thanks
|