Bug 16737

Summary: The duplicated default gateway.
Product: [Retired] Red Hat Linux Reporter: Red Hat Bugzilla <bugzilla>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-23 15:20:26 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:

Description Red Hat Bugzilla 2000-08-22 18:45:25 UTC
I have a machine with 2 NICs. The default gateway is on eth1.
If I put

GATEWAY=10.1.0.1

in /etc/sysconfig/network-scripts/ifcfg-eth1, I got

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.3.1.0        *               255.255.255.0   U     0      0        0
eth0
10.1.0.0        *               255.255.0.0     U     0      0        0
eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         gateway         0.0.0.0         UG    0      0        0
eth1
default         gateway         0.0.0.0         UG    1      0        0
eth1

If I put

GATEWAY=10.1.0.1

in /etc/sysconfig/network. I got

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.3.1.0        *               255.255.255.0   U     0      0        0
eth0
10.1.0.0        *               255.255.0.0     U     0      0        0
eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         gateway         0.0.0.0         UG    0      0        0
eth1

Comment 1 Red Hat Bugzilla 2000-08-23 15:20:24 UTC
Bill:

this is in /etc/sysconfig/network-scripts/ifup:

    # this is broken! it's only here for compatibility with old RH systems
    if [ "${GATEWAY}" != "" -a "${GATEWAY}" != "none" ]; then
        route add default gw ${GATEWAY} metric 1 ${DEVICE}
    fi

Should it still be there?  I think this is the root of the problem.

Comment 2 Red Hat Bugzilla 2001-01-30 00:28:21 UTC
This will be fixed in 5.60-1.