The route command now requires a netmask. Just add one in to both of the route commands and it should go away.
--Dano > -----Original Message----- > From: Ali Onur UYAR [SMTP:[EMAIL PROTECTED] > Sent: Friday, May 21, 1999 5:47 PM > To: debian-user@lists.debian.org > Subject: strange msg in bootup > > 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 > > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < > /dev/null