From owner-freebsd-questions Mon Oct 4 20:41:45 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 8E653151C8 for ; Mon, 4 Oct 1999 20:41:34 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id XAA11119; Mon, 4 Oct 1999 23:44:33 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199910050344.XAA11119@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Multiple Default Routes !!! In-Reply-To: <19991004233259.13775.qmail@hotmail.com> from David Cook at "Oct 5, 1999 09:32:55 am" To: dacster69@hotmail.com (David Cook) Date: Mon, 4 Oct 1999 23:44:32 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Cook wrote, > I'm really hoping that some kind soul will have a look at this > problem for me ... I've posted this twice now with absolutely > ** zero ** response. I'd demand my money back. > Anyway ... third time lucky ... Maybe. Dunno if you'll like my answer. [snip] > 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 ^ What's this? Try losing that '1' on the end there. > bash-2.02# netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif > Expire > default 192.168.26.15 UGSc 1 0 ed1 => > default 192.168.26.15 UGSc 3 1 ed1 > 127.0.0.1 127.0.0.1 UH 0 2 lo0 > 192.168.26 link#1 UC 0 0 ed1 > 192.168.26.15 0:90:27:72:a4:ba UHLW 4 0 ed1 1058 > 192.168.26.255 ff:ff:ff:ff:ff:ff UHLWb 3 293 ed1 Not sure why it does this though. > I get *two* default routes!!! I cannot seem to delete the original > without a "route flush", which kills my telnet session from home, and > leaves no default route at all. I'd tell you to do, # route flush; route add default All in one command line to prevent the loss of the connection, but in this case it would not work. The 'route flush' hangs when I try it (but when interuptted, the default routes are both gone). -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message