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 |
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 |
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.... |
Quote:
|
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. |
Quote:
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 :) ) |
Where is the original poster Micik,
Let ask Micik which OS is used here accordingly we give solution. |
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. |
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. |