From owner-freebsd-questions Mon Oct 4 20:42:24 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id BB49014E0C for ; Mon, 4 Oct 1999 20:42:11 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id WAA77926; Mon, 4 Oct 1999 22:42:10 -0500 (CDT) (envelope-from dan) Date: Mon, 4 Oct 1999 22:42:10 -0500 From: Dan Nelson To: David Cook Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Multiple Default Routes !!! Message-ID: <19991004224209.A77700@dan.emsphone.com> References: <19991004233259.13775.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19991004233259.13775.qmail@hotmail.com> X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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