From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene 'Lynx' Pfeiffer linux@thing.at Date: Thu, 01 Feb 2001 23:07:54 +0000 Subject: [LARTC] 2 default gw in redhat 6.2 Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org
On Thu, 1 Feb 2001, Arthur van Leeuwen wrote:

> On Thu, 1 Feb 2001, Rene 'Lynx' Pfeiffer wrote:
>
> > On Thu, 1 Feb 2001, Arthur van Leeuwen wrote:
> >
> > > On Thu, 1 Feb 2001, bert hubert wrote:
> > >
> > > > Linux is supposed to have something called 'dead=
 gateway detection'
> > >
> > > Which it doesn't use when there's a multipath default=
 route. Now, that isn't
> > > technically the case here, so that shouldn't be the p=
roblem here.
> >
> > Does this mean that Linux automatically detects a failed d=
efault
> > route and takes the second one if I configure two default =
routes?
>
> No, it means the exact opposite. If you configure two default r=
outes
> Linux will randomly multiplex outgoing connections over the two=
 routes.

This is exactly the problem I am having. I am trying to set up a spare defa=
ult
route in case the primary route is down. The router in question is a Linux
machine having access to three upstream connections and to the DMZ. I do not
want to have routing daemons on the box, I simply want to change the default
route in case the primary connection (which supplies the LAN behind the DMZ=
) is
down.

The only thing I have come up so far (I do not want to have fancy things li=
ke
zebra, routed or gated on this machine) is a Perl script that measures the
connectivity and takes action if it detects that the route is down.

Does anyone have a better idea? (I am willing to to a nice and tidy ASCIIgr=
am
if you like ;-)

Cheers,
Ren=E9

 GNU/Linux Manages! - Linux Solution Provider
  RP551296-NICAT    - Open Software for Open Minds