Bug 19641 - if GATEWAY in ifcfg-ethX, duplicate default routes are added
Summary: if GATEWAY in ifcfg-ethX, duplicate default routes are added
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:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-10-23 21:58 UTC by Pekka Savola
Modified: 2014-03-17 02:16 UTC (History)
2 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2000-10-24 11:19:01 UTC


Attachments (Terms of Use)

Description Pekka Savola 2000-10-23 21:58:01 UTC
If you use GATEWAY= in ifcfg-ethX (e.g. netconfig does this), 
duplicate default routers will be added (one with metric 1, one with metric 0), 
unless you have the following line in /etc/sysconfig/network:

GATEWAY=

 .. This is caused by the following in /sbin/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
---

Happens in both RHL62 and RHL70.

Comment 1 Bill Nottingham 2001-01-30 00:00:57 UTC
The code will be removed as of 5.60-1.


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