Red Hat Bugzilla – Bug 151571
"ip rule add" invocations are not saved/restored across reboot
Last modified: 2007-11-30 17:11:02 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050302 Firefox/1.0.1 Fedora/1.0.1-1.3.2
Description of problem:
If I type this:
ip rule add priority 1000 fwmark 1 table 1
then it works fine. However, the resulting rule is not saved/restored across a reboot, so I have to manually add it back in.
"service iptables save" will save all the iptables stuff. Shouldn't it, or something similar, do the same for routing policy?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. ip rule add priority 1000 fwmark 1 table 1
2. ip rule show. Note added rule
3. shutdown -r now
5. ip rule show. Note lack of added rule
Actual Results: rule missing from rule table
Expected Results: rule present in rule table
Iproute doesn't have a functionality like this and propably won't ever have. All
the ip * things are set by configuration scripts at the startup. Currently this
applies not only on `ip rule` but also the same behaviour you'll get with `ip
routes`, etc. None of the added data are stored. If you need to keep your
configuration, you have to dig in the bootup scripts and set the values there.
Anyway, I will discuss this with other developers and maybe I'll add this to