Description of problem: If the DHCP server did not supply a default route (a standalone network), the following happens: [root@niphredil /]# ifup eth0 Determining IP information for eth0... done. /sbin/ifup: line 268: [: : integer expression expected [root@niphredil /]# Version-Release number of selected component (if applicable): [zaitcev@niphredil zaitcev]$ rpm -qf /sbin/ifup initscripts-7.14-1 [zaitcev@niphredil zaitcev]$ rpm -q initscripts initscripts-7.14-1 [zaitcev@niphredil zaitcev]$ How reproducible: 100%, but you have to have some unusual DHCP server configuration. Additional info: On some NAT boxes this happens if the Internet connection breaks, perhaps that'll help reproducing. Typically users notice this when GNOME refuses to start up and posts a dialog "Cannot resolve host foo, login anyway?".
Just so you don't have to unearth an old ifup, here's the line: # DHCP likes to create duplicate routes. Fix that up. NUMDEFROUTES=`ip -o route | \ grep "^default" | \ awk '{ nlines++ } END { print nlines }'` if [ -n "$NUMDEFROUTES" -a "$NUMDEFROUTES" -gt 1 ]; then <<==== 268 # remove the default route for the new device (old route wins) ip route del default dev ${DEVICE} fi
*** This bug has been marked as a duplicate of 79448 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.