LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2009, 11:06 AM   #1
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Rep: Reputation: 16
Error during stratup and shutdown /sbin route


Hello,

during startup and shutdown procedure I noticed error message something like:error executing /sbin/route add default gw 192.168.10.1

I didn't notice any problem with my computer or network, but wonder, what can I do in order to prevent this from showing.

Thanks
 
Old 07-01-2009, 01:17 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Hello Micik

If you can find which init script is issuing the error message by inspecting the boot message sequence you can run that init script in isolation as root (with a start or a stop argument) and, if it reproduces the error message, you can inspect the init script and determine which command is producing the error.

It's helpful if you give more information like which distro you are running and the exact text of the error message. Depending on the distro you may have the boot messages in one of the /var/log files, perhaps bootmsg or something like that.

Best

Charles
 
Old 07-01-2009, 01:35 PM   #3
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Micik, when you find whatever script is running that command (check /etc/init.d), find out if it's putting the network card device name at the end of that line.
The command is incomplete, and should read something like this;
/sbin/route add default gw 192.186.10.1 eth0

Oh, and you might be able to catch the error again by typing "dmesg | less" right after you login (just after the server's rebooted).

P.S: If this server's not networked, that might explain things....

Last edited by xeleema; 07-01-2009 at 01:37 PM.
 
Old 07-01-2009, 01:39 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
The command is incomplete, and should read something like this;
/sbin/route add default gw 192.186.10.1 eth0
AFAIK you only need to add eth0 if you have multiple interfaces
 
Old 07-01-2009, 01:48 PM   #5
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

Rep: Reputation: 38
well its simple i orger to get rid of this error just add the gefault gateway.

path is: /etc/sysconfig/network-scripts/ifcfg-eth0
just add this line there

GATEWAY=192.168.10.1


if issue not resolved then give the answers of following so that i can help you
to come out of this.

can u show me the output of command ifconfig.
How many network cards you are using.
 
Old 07-01-2009, 03:54 PM   #6
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Quote:
/etc/sysconfig/network-scripts/ifcfg-eth0
Not all Linux distributions use a configuration file such as this, however, this is a great suggestion.
The "sysconfig" directory would be present in a RedHat-based distro (CentOS, WhiteBoxLinux, Fedora, etc).

@repo: True, most "route" binaries work that way, however in *BSD, Solaris, etc that's not always the case.
(I've long since stopped assuming everyone that posts is using Linux, after that one guy that had NetBSD running on a DreamCast was having kernel problems )
 
Old 07-02-2009, 05:38 AM   #7
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

Rep: Reputation: 38
Where is the original poster Micik,
Let ask Micik which OS is used here accordingly we give solution.
 
Old 07-03-2009, 03:17 AM   #8
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Here, I am. Sorry because of the delay, but I'm not really sure about the exact data you need. cat /etc/issue doesn't not provide me much information except that kernel is version 2.0.33. Also during startup procedure I couldn't see if linux distribution is shown somewhere.

I think this distribution is SUSE linux since it has "yast" and "SuSEconfig" files.
Anyway, when computer is shutting down there is similar error, but instead of add, it is written del.

Anyway, networking is OK, so this is not really a problem but annoying to see such error messages during start and shutdown.

Thanks for help.
 
Old 07-04-2009, 02:51 AM   #9
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

Rep: Reputation: 38
Its ok Micik. NO network issue thats good. Yes yast and SUSEconfig are SUSE Linux tools for configuration. Thanks a lot for confirmation. So, issue is closed now.

Thanks to all ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between iptables and /sbin/route svittal Linux - Networking 4 06-05-2009 03:25 AM
User shutdown - 'cp -i -p shutdown /usr/sbin/shutdown2 - why does this not work, can? mitchellray Linux - Desktop 4 03-20-2009 09:31 PM
My Linux box does not shutdown i do when i do /sbin/shutdown -h now yawe_frek Linux - Hardware 6 09-14-2007 07:48 AM
Nothing happens when I run /sbin/route -n HyperSprite Linux - Networking 3 04-28-2004 04:20 PM
Wrap up of the /sbin/route command acura94 Programming 1 09-11-2002 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration