I have the following static routes.

ip route add default via table enp6s0
ip rule add from lookup enp6s0

And I'm not sure how to make RedHat restore these rules on reboot. I created /etc/sysconfig/network-scripts/routes-enp6s0, but it doesn't restore after running ifdown/ifup.



Your problem is a wrong file name.

Add routes to /etc/sysconfig/network-scripts/route-enp6s0 file:

default via table enp6s0

and rules to /etc/sysconfig/network-scripts/rule-enp6s0 file:

from lookup enp6s0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.