Date: Tue, 1 May 2001 13:53:09 -0500 (CDT) From: Nick Rogness <nick@rogness.net> To: Ted Mittelstaedt <tedm@toybox.placo.com> Cc: Ken Bolingbroke <hacker@bolingbroke.com>, questions@FreeBSD.ORG Subject: RE: Redundant Internet connections Message-ID: <Pine.BSF.4.21.0105011351380.88045-100000@cody.jharris.com> In-Reply-To: <000401c0d1f8$3eb33380$1401a8c0@tedm.placo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 30 Apr 2001, Ted Mittelstaedt wrote: > >On Sat, 28 Apr 2001, Ken Bolingbroke wrote: > > > >> > >> Given a FreeBSD box with _two_ independent connections to the > internet, >> and also serving as the gateway to a third, private > network, how would I >> configure it to use both Internet links as > "default" routes? I would >> prefer one over the other, but need it > to fall back to the second if the >> first goes offline. > > > > > > //Add backup route > > # route add -net 0.0.0.0 X.X.X.X -netmask 0.0.0.0 -nostatic > > > > //Add primary route > > # route add -net 0.0.0.0 A.A.A.A -netmask 128.0.0.0 -nostatic > > # route add -net 128.0.0.0 A.A.A.A -netmask 128.0.0.0 -nostatic > > > > > > A.A.A.A is your primary gateway and X.X.X.X is your backup > > gateway. > > > > This does no load balancing but if interface that connects to > > A.A.A.A goes down, the secondary oute will take affect. > > > > Muh ha ha ha ha!!! (evil cackle) > > Yes, this is the ham-handed way to attempt this with only one tiny > problem: > > Supposing that both interfaces into the FreeBSD router are Ethernet? > (say, 2 DSL connections) A DSL modem will NOT shut down it's Ethernet > interface if the DSL circuit to it goes down. What then? Your SOL! This is only works real well when your ethernet interface goes down. Nick Rogness <nick@rogness.net> - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0105011351380.88045-100000>