Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 60396 - ifup replaces routes incorrectly for similar subnets
ifup replaces routes incorrectly for similar subnets
Product: Red Hat Raw Hide
Classification: Retired
Component: initscripts (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2002-02-27 08:35 EST by Need Real Name
Modified: 2014-03-16 22:25 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-28 15:07:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-02-27 08:35:59 EST
Description of Problem:
I use a network setup where eth0 and eth1 use the same subnet 
( On eth1 (, the only host supposed to be reached is All others 
should go to eth0 ( In command line configuration it looks like this:
route add -host gw dev eth1
route add -net netmask gw dev 
At approximately line 227 of /sbin/ifup (search for comment "Replace any existing route"), 
there are some lines which intend to add a route for the device being configured. However since 
eth1 is configured after eth0, the lines replace the route through eth0 (described in second route 
command), forcing all traffic to go through eth1.

Problem fix: For me I can just comment the lines 
out and there are no side effects. However this may not be true for all systems.

number of selected component (if applicable):

How Reproducible:

Steps to Reproduce:
1. Configure ifcfg-eth0 to and ifcfg-eth1 to
2. Put these lines in static-routes:
eth0 net netmask gw
eth1 net netmask
3. Reboot system.

Actual Results:
route with gateway through gets replaced with a route through eth1.

The route through should stay, of course.

Additional Information:
Comment 1 Bill Nottingham 2005-04-28 15:07:54 EDT
Closing bugs on older, no longer supported releases. Apologies for any lack of
response. Please open a new bug if this persists on a current release, such as
Fedora Core 3.

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