Date: Tue, 5 Oct 1999 00:22:58 -0400 (EDT) From: Hector Colmenares <zips@zips.net> To: cjclark@home.com Cc: David Cook <dacster69@hotmail.com>, freebsd-questions@FreeBSD.ORG Subject: Re: Multiple Default Routes !!! Message-ID: <Pine.BSF.4.10.9910050019200.3859-100000@justice.zips.net> In-Reply-To: <199910050344.XAA11119@cc942873-a.ewndsr1.nj.home.com>
index | next in thread | previous in thread | raw e-mail
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 <whatever>
>
> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9910050019200.3859-100000>
