Bug 120908

Summary: duplicate routes created
Product: Red Hat Enterprise Linux 3 Reporter: Dax Kelson <dkelson>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-18 03:54:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 116726, 116727    

Description Dax Kelson 2004-04-15 04:31:00 UTC
Description of problem:

I have a firewall box running RHEL3. It has 4 network interfaces and
two of which (eth2,eth3) are doing 802.1q VLANS. On the internet
facing interface (eth0) I have multiple IPs bound with virtual interfaces.

My routing table has the default route duplicated many times.

# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window 
irtt Iface
10.2.4.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.99
66.62.77.0      0.0.0.0         255.255.255.0   U         0 0        
 0 eth0
10.2.6.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.8
10.2.7.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.9
10.2.0.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.3
10.70.1.0       0.0.0.0         255.255.255.0   U         0 0        
 0 eth3.10
10.2.1.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.4
10.2.2.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.5
10.2.3.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.100
10.2.8.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.11
10.2.9.0        0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.12
10.2.10.0       0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.13
10.2.11.0       0.0.0.0         255.255.255.0   U         0 0        
 0 eth2.14
10.1.0.0        0.0.0.0         255.255.0.0     U         0 0        
 0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0        
 0 lo
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0
0.0.0.0         66.62.77.1      0.0.0.0         UG        0 0        
 0 eth0

My GATEWAY is defined in my ifcfg-eth0 file and not
/etc/sysconfig/network.

I have the following ifcfg files:

ifcfg-eth0     ifcfg-eth0:2  ifcfg-eth0:7  ifcfg-eth2.100 
ifcfg-eth2.14  ifcfg-eth2.9
ifcfg-eth0:1   ifcfg-eth0:3  ifcfg-eth0:8  ifcfg-eth2.101 
ifcfg-eth2.3   ifcfg-eth2.99
ifcfg-eth0:10  ifcfg-eth0:4  ifcfg-eth0:9  ifcfg-eth2.11  
ifcfg-eth2.4   ifcfg-eth3
ifcfg-eth0:11  ifcfg-eth0:5  ifcfg-eth1    ifcfg-eth2.12  
ifcfg-eth2.5   ifcfg-eth3.10
ifcfg-eth0:12  ifcfg-eth0:6  ifcfg-eth2    ifcfg-eth2.13  
ifcfg-eth2.8   ifcfg-lo

Comment 1 Dax Kelson 2004-04-24 23:32:44 UTC
By moving the GATEWAY line *out* of ifcfg-eth0 and into
/etc/sysconfig/network the problem is fixed.

These duplicate default routes cause problems from certain software
like OpenSWAN.

Be aware that anaconda and redhat-config-network stick the GATEWAY
into the ifcfg files and not /etc/sysconfig/network.

So the problem of duplicate routes still needs fixing.

Comment 2 Bill Nottingham 2004-06-07 19:24:54 UTC
Is it only in ifcfg-eth0?


Comment 3 Bill Nottingham 2004-06-07 19:42:04 UTC
Ah, it's a 'function' of ifup-aliases.

Comment 4 Dax Kelson 2004-06-07 19:48:51 UTC
Yes, the GATEWAY line was only in ifcfg-eth0.

Comment 5 Bill Nottingham 2004-06-07 19:56:50 UTC
As for the fix, search for 'broken' in ifup-aliases, and remove that
block. :)

Comment 6 Bill Nottingham 2004-06-24 20:50:28 UTC
Fixed in 7.31.14.EL-1/6.47.9-1.

Comment 7 Jay Turner 2004-08-18 03:54:05 UTC
Fix confirmed with initscripts-7.31.16.EL-1.

Comment 8 Jay Turner 2004-09-02 03:26:22 UTC
An errata has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-328.html