From owner-freebsd-questions Tue May 1 10:43:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 4346937B43C for ; Tue, 1 May 2001 10:43:29 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f41Ir9A88099; Tue, 1 May 2001 13:53:09 -0500 (CDT) (envelope-from nick@rogness.net) Date: Tue, 1 May 2001 13:53:09 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Ted Mittelstaedt Cc: Ken Bolingbroke , questions@FreeBSD.ORG Subject: RE: Redundant Internet connections In-Reply-To: <000401c0d1f8$3eb33380$1401a8c0@tedm.placo.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 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 - 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