Date: Mon, 4 Oct 1999 22:42:10 -0500 From: Dan Nelson <dnelson@emsphone.com> To: David Cook <dacster69@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Multiple Default Routes !!! Message-ID: <19991004224209.A77700@dan.emsphone.com> In-Reply-To: <19991004233259.13775.qmail@hotmail.com> References: <19991004233259.13775.qmail@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 05), David Cook said: > 192.168.26.15 0:90:27:72:a4:ba UHLW 3 0 ed1 1177 > 192.168.26.255 ff:ff:ff:ff:ff:ff UHLWb 3 293 ed1 > > bash-2.02# route add -net 192.168 -netmask 255.255.0.0 192.168.26.15 1 > add net 192.168: gateway 192.168.26.15 Try removing the trailing "1" from your command; the syntax according to the manpage is: route [-n] command [-net | -host] destination gateway I tried your command with the "1" and it ended up being an undeletable default route like you said. Without the "1", it was added correctly: 192.168/16 192.168.26.15 UGSc 0 0 ep0 I guess you've found a bug in the route documentation. I checked the code, and there is a third optional argument to "route add" which sets the netmask, overriding the -netmask switch. The netmask of 1 must have confused route enough to insert a bad entry into the routing table. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991004224209.A77700>