From owner-freebsd-questions Mon Oct 4 21:18:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from justice.zips.net (justice.zips.net [207.234.219.219]) by hub.freebsd.org (Postfix) with ESMTP id B838714BEA for ; Mon, 4 Oct 1999 21:18:17 -0700 (PDT) (envelope-from zips@zips.net) Received: from localhost (zips@localhost) by justice.zips.net (8.9.3/8.9.3) with ESMTP id AAA07000; Tue, 5 Oct 1999 00:22:58 -0400 (EDT) (envelope-from zips@zips.net) Date: Tue, 5 Oct 1999 00:22:58 -0400 (EDT) From: Hector Colmenares To: cjclark@home.com Cc: David Cook , freebsd-questions@FreeBSD.ORG Subject: Re: Multiple Default Routes !!! In-Reply-To: <199910050344.XAA11119@cc942873-a.ewndsr1.nj.home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You might want to try it like This. bash-2.02# route add -net 192.168 -netmask 255.255.0.0 bash-2.02# route -n add default 192.168.26.15 On Mon, 4 Oct 1999, Crist J. Clark wrote: > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message