- 论坛徽章:
- 0
|
本帖最后由 icooci 于 2012-03-04 12:14 编辑
- Mandrake & Redhat have directories for pre-up and post-up scripts.
- You will have to decide how much to split the files so that the routing is still correct if you manually bring an interface down.
- If that's not going to ever happen, add it to the runlevel startup scripts at an approprite position.
- Make sure any script that runs has the last line " ip route flush cache " or you'll get stale routing info making some interesting problems.
复制代码 Iproute doesn't have a functionality like this and propably won't ever have. Allthe 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 feature requests. |
|