Bug 29500 - Static routes for aliased interfaces in RH7.0 no longer work
Summary: Static routes for aliased interfaces in RH7.0 no longer work
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-02-26 02:34 UTC by John Bass
Modified: 2014-03-17 02:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-03-05 10:34:32 UTC
Embargoed:


Attachments (Terms of Use)
Patch to /etc/sysconfig/network-scripts/ifup-aliases to correct static routes (631 bytes, patch)
2001-03-05 10:34 UTC, chris
no flags Details | Diff

Description John Bass 2001-02-26 02:34:24 UTC
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.

Comment 1 chris 2001-03-05 10:33:06 UTC
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.

Comment 2 chris 2001-03-05 10:34:24 UTC
Created attachment 11782 [details]
Patch to /etc/sysconfig/network-scripts/ifup-aliases to correct static routes

Comment 3 Bill Nottingham 2001-03-05 17:27:31 UTC
Will be fixed in 5.70-1; thanks!

Comment 4 chris 2001-05-22 09:20:03 UTC
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.

Thanks,
Chris.

Comment 5 Bill Nottingham 2001-05-22 20:19:19 UTC
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.

Comment 6 chris 2001-05-23 09:00:01 UTC
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

Comment 7 Bill Nottingham 2001-05-23 14:17:29 UTC
Aack, you're right. Sorry about that.
This will get fixed in 5.88-1.


Note You need to log in before you can comment on or make changes to this bug.