After upgrading from RH6.x to RH7.0 static routes for aliased interfaces
are no longer applied at boot time, or when the interfaces are manually
started/stopped with ifup/ifdown.
This seems to be caused by a bug in /etc/sysconfig/network-scripts/ifup-aliases
which looks for static routes via the parent interface instead of the aliased
one. I think the attached patch fixes.
Created attachment 11782 [details]
Patch to /etc/sysconfig/network-scripts/ifup-aliases to correct static routes
Will be fixed in 5.70-1; thanks!
It looks like this still hasn't been fixed in the initscripts-5.83-1 which comes
with RH7.1, or the initscripts-5.86-1 currently in RawHide.
In what way? The code is changed as described above.
Do note, support for *incorrectly formed* static route entries
(as linuxconf has generated in the past) was dropped.
No, it isn't. In 5.83-1, line 278 of ifup-aliases says:
grep "^$1 " /etc/sysconfig/static-routes | while read device args; do
It hasn't been patched. If it had, it would say:
grep "^$DEVICE " /etc/sysconfig/static-routes | while read device args; do
Aack, you're right. Sorry about that.
This will get fixed in 5.88-1.