Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2000 17:15:47 -0500
From:      Albert Chin-A-Young <china@thewrittenword.com>
To:        Nick Rogness <nick@rapidnet.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Routing help
Message-ID:  <20000726171547.A10709@postal.thewrittenword.com>
In-Reply-To: <Pine.BSF.4.21.0007261522020.34597-100000@rapidnet.com>; from nick@rapidnet.com on Wed, Jul 26, 2000 at 04:07:58PM -0600
References:  <20000726160630.A6599@postal.thewrittenword.com> <Pine.BSF.4.21.0007261522020.34597-100000@rapidnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 26, 2000 at 04:07:58PM -0600, Nick Rogness wrote:
> On Wed, 26 Jul 2000, Albert Chin-A-Young wrote:
> 
> > On Wed, Jul 26, 2000 at 02:43:30PM -0600, Nick Rogness wrote:
> > > On Wed, 26 Jul 2000, Albert Chin-A-Young wrote:
> > > > I have a FreeBSD/x86 3.4 box configured with two NICs, both connected
> > > > to separate networks. I have one default route. How would I do the
> > > > following:
> > > >   1. Respond to all packets coming from NIC #1 through NIC #1 and
> > > >      respond to all packages coming from NIC #2 through NIC #2.
> > > >      Because I have a default route, all packages return through
> > > >      only one NIC.
> > > 
> > > 	Return from where?  Are the hosts on the networks connected
> > > 	pointed at the FreeBSD as the default gateway? 
> > > 
> > > 	I'm not quite clear on what you mean but I would recommend some
> > > 	type of Interior routing protocol, like RIP or OSPF to handle
> > > 	your routing needs.  Static routes can be a pain to manage after a
> > > 	while.
> > 
> > Say the FreeBSD box is a web server and gets a connection from host
> > foo on the 'net. This connection comes in over NIC #1. When the
> > BSD box wishes to communicate back with this host, I want the traffic
> > to go back through NIC #1, regardless of what the default route says.
> 
> 	You need to run a routing protocol then ;-)  depending on how your
> 	network is designed and how your host connects to the
> 	network, you can tweek this quite a bit.  Still, this would be
> 	very tricky to implement in certain situations and would never be
> 	exact.
> 
> 	Here's a question for ya, Are all networks (routeable) reachable
> 	through both ethernet cards?

Yes.

> 	What are you trying to accomplish?

We have two different ISPs providing our internet connection, with the
web and ftp server multihomed (second NIC not alive yet). I want to
survive the case where one ISP goes dead.

-- 
albert chin (china@thewrittenword.com)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000726171547.A10709>