- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- /sbin/ifup: line 268: [: : integer expression expe...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 06:15 AM
05-16-2005 06:15 AM
OS of dhcp client: rhl 9
OS of dhcp server: rhl 9
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
#ifdown eth0; ifup eth0
Determinig Ip info for eth0... done.
/sbin/ifup: line 268: [: : integer expression expected
#
although dhcp clients gets all ip info from dhcp server suucesfuly, but the mesage "/sbin/ifup: line 268: [: : integer expression expected " seem odd to me.
I wana know what does this messege means ? is this an error/warning ?
Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 08:08 AM
05-16-2005 08:08 AM
Re: /sbin/ifup: line 268: [: : integer expression expected
Can you please post here a few lines before and after line 268?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 01:53 PM
05-16-2005 01:53 PM
Solution# 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
# remove the default route for the new device (old route wins)
ip route del default dev ${DEVICE}
fi
# end dynamic device configuration
Which would mean that therere absolutely *NO* default routes, the '"$NUMDEFROUTES" -gt 1' section failed.
Why aren't there any default routes?
In any case, the fix is to alter the NUMDEFROUTES= line to:
NUMDEFROUTES=`ip -o route | \
grep "^default" | \
awk 'BEGIN { nlines = 0 } { nlines++ } END { print nlines }'`
This forces NUMDEFROUTES to have an interger value, regardless of whether there is or is not any default routes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 05:14 PM
05-16-2005 05:14 PM
Re: /sbin/ifup: line 268: [: : integer expression expected
I m at home, so i'll reply when i m at office.
Thanks
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 06:04 PM
05-16-2005 06:04 PM
Re: /sbin/ifup: line 268: [: : integer expression expected
Check out the following link:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=102199
At first try to set default gw on your system.
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 06:19 PM
05-16-2005 06:19 PM
Re: /sbin/ifup: line 268: [: : integer expression expected
It should work regardless of whether route information is given or not. have you done any manual editing of files in network-scripts directory.
better would be to re-run netconfig which will present you with a text based user interface for you to give network related information.
once it is configured restart network service by, service network restart, command.
And if you are still getting the error then go by other member´s reply of editing the file.
Regards,
Go
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 08:00 PM
05-16-2005 08:00 PM
Re: /sbin/ifup: line 268: [: : integer expression expected
It's the settings of the DHCP server, not forking over a 'router' (default route).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 06:18 AM
05-17-2005 06:18 AM
Re: /sbin/ifup: line 268: [: : integer expression expected
I folowed the instructions provided by Stuart Browne, and this "/sbin/ifup: line 268: [: : integer expression expected" message GONE. ;)
Solution:
--------
Either dhcp server provides Default Gateways ip, or if dhcp server doesnt provides the Gateways ip then edit the /sbin/ifup as Stuart has instruct, this mesage wont recieve ;)
Thanks to every1 a lot
Regards
Maaz