Subject: strange msg in bootup Date: Sat, May 22, 1999 at 12:46:47AM +0300
In reply to:Ali Onur UYAR Quoting Ali Onur UYAR([EMAIL PROTECTED]): > I have been using Linux for a year. I started with hamm and now I am using > slink. > I was running kernel 2.0.36 until last week. > Then decided it was the time to tackle sound config. > Then I realized it might had been a bit easier if I switched to 2.2 series > kernels. > Read a great deal of docs, installed the kernel 2.2.9 using kernel-package > and > it worked! > Then I configured the sound card, configuring the Soundblaster Vibra16pnp > troubled > me a great deal, but everything was fine in the end. > > Now the problem is that I have recognized a strange message during boot up, > and > I am not > exactly sure if it is related to this final upgrade. > Just after the local file systems are mounted, a message is displayed on the > console: > SIOCADDRT: Invalid argument > SIOCADDRT: Invalid argument > > Hunted around in /etc/rcS.d for some time and discovered that the message was > displayed while > the file /etc/rcS.d/S40network was being executed. > Placing some echo commands here and there I tracked down the problem to the > invocations of > the route command. > > Doesn't seem to be a serious problem, as everything seems to be working, but > what may be the > cause for such an error msg, can anybody help. I do not have any experience > with > routing issues. > > Following is a listing of my /etc/rcS.d/S40network file, hope it will help: > > #! /bin/sh > ifconfig lo 127.0.0.1 > route add -net 127.0.0.0 > IPADDR=144.122.246.42 > NETMASK=255.255.252.0 > NETWORK=144.122.244.0 > BROADCAST=144.122.247.255 > GATEWAY=144.122.246.1 > ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} > route add -net ${NETWORK} > [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1 Very good troubleshooting! It is a 'feature' of the 2.2.x kernels. The kennel now does the routing itself so the route command in the network script isn't needed. Here is how I changed my /etc/init.d/network script to handle it if [ $(uname -r |grep 2.0) ]; then /sbin/route add -net 127.0.0.0 ifconfig ppp ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} /sbin/route add -net ${NETWORK} netmask ${NETMASK} else /sbin/ifconfig lo 127.0.0.1 /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK} ##### /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo fi Hope This Helps Wayne -- There are two ways to write error-free programs. Only the third one works. _______________________________________________________ Wayne T. Topa <[EMAIL PROTECTED]>