multiple default routes

From: Dr Marco Luchini <m.luchini_at_ic.ac.uk>
Date: Fri, 16 May 1997 20:16:44 +0100

Hi,

Is it possible to set two default routes so that the system can try one
and, if doesn't work, try the other?

I have a subnet with two Ciscos which both provide a gateway to the
outside. For various reasons the people controlling the Ciscos don't
want to run RIP on them. So I have to set a default route on the alpha
to see the outside world. But a single defalt route does not give me
redundancy in case of Cisco failure.

I have thought of, what looks to me like a dirty hack involving putting
0.0.0.0 in /etc/gateways twice with different metrics, but I haven't
tested it.

If I try:

# route add default blah.net
# route add default blah2.net

I get that the socket is in use and it won't set the second.

How do people solve this sort of problem?


Ciao, Marco

-------------------------------------------------------------------------
Marco Luchini Internet : m.luchini_at_ic.ac.uk
Department of Mathematics Telephone: +44 171 594 8551
Imperial College Fax: +44 171 594 8517
London SW7 2BZ, UK
-------------------------------------------------------------------------
Received on Fri May 16 1997 - 21:37:36 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT