Date: Wed, 02 Sep 1998 22:45:36 +0000 From: Mike Smith <mike@smith.net.au> To: Don <don@calis.BlackSun.org> Cc: Tom <tom@uniserve.com>, freebsd-stable@FreeBSD.ORG Subject: Re: How to add route Message-ID: <199809022245.WAA00404@word.smith.net.au> In-Reply-To: Your message of "Wed, 02 Sep 1998 23:37:53 -0400." <Pine.BSF.3.96.980902232707.10174A-100000@calis.BlackSun.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> I usually add routes by using the format: > route add <route>/<bits> <gateway> > > But What about in the case of the the localnet? > When adding a route for the local network I have always used: > route add <route>/<bits> -interface <interface> > > Should i instead be specifying the localhost as the gateway? You don't add routes for directly connected networks; there's an implicit route courtesy of the existence of the interface. I think this is contra to the way Linux works (requiring an explicit route for anything). -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809022245.WAA00404>