Bug 31788

Summary: error in ifup
Product: [Retired] Red Hat Raw Hide Reporter: Gerald Teschl <gt>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: high    
Version: 1.0CC: 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: 2001-03-14 17:54:23 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 Gerald Teschl 2001-03-14 17:51:27 UTC
The latest ifup doesn't set the default route correctly. Below is a fix

--- ifup.orig   Tue Mar 13 23:19:06 2001
+++ ifup        Tue Mar 13 23:17:49 2001
@@ -166,7 +166,7 @@
 
     if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
        # set up default gateway
-       if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`
2>/dev/null" = "NETWORK=${NETWORK}" ]; then
+       if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK}
2>/dev/null`" = "NETWORK=${NETWORK}" ]; then
            route add default gw ${GATEWAY} ${DEVICE}
            DEFGW=${GATEWAY}
        elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then

Comment 1 Bill Nottingham 2001-03-14 17:54:19 UTC
Also fixed in 5.77-1.