All of lore.kernel.org
 help / color / mirror / Atom feed
From: RoMaN SoFt / LLFB!! <roman@madrid.com>
To: lartc@vger.kernel.org
Subject: [LARTC] 1+1 HA gateway
Date: Thu, 12 Jul 2001 14:47:57 +0000	[thread overview]
Message-ID: <marc-lartc-99494925718474@msgid-missing> (raw)


 Hi.

 I need to setup "one route" to a certain destination network (indeed
it's another LAN, which I want to connect to, i.e. I'm creating a
simple VPN). I have 2 possible gateways:
a) Fast (through an ADSL line via 192.168.7.254. This is a CIPE
connection)
b) Slow (through a RDSI line via 192.168.5.3. This is pure PPP)

 The situation I'm looking for is having two real routes to the
destination network (via the fast gateway and the slow one
respectively) but only the first (=fast) one is used in normal
conditions. The second (=slow) one will only be used in case the first
breaks (i.e. failover mode).

 I've tried to enter two different routes to the same destination and
it seems not to be permitted:

goliat:/etc/iproute2 # ip route list table roman
192.168.7.254 dev cipcb0  scope link 
default via 192.168.5.1 dev eth1 

goliat:/etc/iproute2 # ip route add 192.168.1.0/24 via 192.168.7.254
table roman

goliat:/etc/iproute2 # ip route add 192.168.1.0/24 via 192.168.5.3
table roman       
RTNETLINK answers: File exists
 
 Nevertheless I've checked the main table and I can see "duplicated"
routes (these were introduced by the "route" command):

goliat:/etc/iproute2 # ip route list
62.22.78.68 via 192.168.5.1 dev eth1 
62.22.78.68 via 192.168.5.2 dev eth1 
192.168.7.254 dev cipcb0  proto kernel  scope link  src 192.168.6.254 
192.168.5.0/24 dev eth1  proto kernel  scope link  src 192.168.5.200 
192.168.3.0/24 via 192.168.5.3 dev eth1 
192.168.2.0/24 via 192.168.5.3 dev eth1 
192.168.1.0/24 via 192.168.5.3 dev eth1 
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.200 
127.0.0.0/8 dev lo  scope link 
default via 192.168.5.1 dev eth1 
goliat:/etc/iproute2 # 

Note the 62.22.78.68 route. Now it is permitted !

 Is this last one a multipath route or what am I missing?

 Is it possible to reach the failover state I'm looking for? Any
experiences with that?

 Another possible case (perhaps it works) would be to set up a
multipath route and use a very high metric for the slow gateway, but
this is not exactly what I want 'cause I want the slow gateway to be
used IF and ONLY IF the fast one is down.

 Please, help. Thx in advance.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    ** RoMaN SoFt / LLFB **  
       roman@madrid.com
   http://pagina.de/romansoft
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

             reply	other threads:[~2001-07-12 14:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-12 14:47 RoMaN SoFt / LLFB!! [this message]
2001-07-12 18:20 ` [LARTC] 1+1 HA gateway Mike Fedyk
2001-07-13 16:41 ` Mike Fedyk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-99494925718474@msgid-missing \
    --to=roman@madrid.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.