LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error during stratup and shutdown /sbin route (https://www.linuxquestions.org/questions/linux-newbie-8/error-during-stratup-and-shutdown-sbin-route-736979/)

Micik 07-01-2009 11:06 AM

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

catkin 07-01-2009 01:17 PM

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

xeleema 07-01-2009 01:35 PM

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....

repo 07-01-2009 01:39 PM

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

vap16oct1984 07-01-2009 01:48 PM

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.

xeleema 07-01-2009 03:54 PM

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 :) )

vap16oct1984 07-02-2009 05:38 AM

Where is the original poster Micik,
Let ask Micik which OS is used here accordingly we give solution.

Micik 07-03-2009 03:17 AM

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.

vap16oct1984 07-04-2009 02:51 AM

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 ...


All times are GMT -5. The time now is 11:06 PM.