Networking Forums

Networking Forums > Computer Networking > Linux Networking > redundant default routes?

Reply
Thread Tools Display Modes

redundant default routes?

 
 
Jay McCanta
Guest
Posts: n/a

 
      10-09-2004, 05:12 AM
I have a bunch of system that are on a private single-segment network.
They currently use a Linux box for a default gateway to company
network (GW A). I have another Linux box that has one NIC in the
private net and the other in the corporate (GW B). I would like a
host on the private side (client) to use host A for a gateway unless A
is not available, then use B. The client only has one NIC so I
couldn't figure out how to use multipathing. The clients are all
Linux boxes as well. How can I get the behaviour I would like.

+-------- corpnet --------+ 10.111.3.x
| |
| |
+------+------+ +------+------+
| GW A | | GW B |
+------+------+ +------+------+
| |
| |
+-------- privatenet------+
|
|
client 192.168.x.x

Thanks to anyone who has a solution.
Jay M.
Redmond, WA (and using Linux)
 
Reply With Quote
 
 
 
 
Paul Dwerryhouse
Guest
Posts: n/a

 
      10-11-2004, 01:15 PM
(E-Mail Removed) (Jay McCanta) writes:

>I would like a host on the private side (client) to use host A for a gateway
>unless A is not available, then use B.


>The client only has one NIC so I couldn't figure out how to use multipathing.
>The clients are all Linux boxes as well. How can I get the behaviour I would
>like.


One solution would be to use a routing daemon like quagga, but it's probably
a bit messy having to install that on every client.

A better idea would be to use something like VRRP (Virtual Redundency Router
protocol), where the IP address used as your default gateway will shift from
one gateway to the other, should the primary fail.

I've not played with VRRP under Linux yet, so I can't give any advice as
to the feasibility of this (but I've done enough HSRP on Cisco routers
to know the concept works).

Maybe you'll find this of interest: http://www.keepalived.org/

Cheers,

Paul.

--
Paul Dwerryhouse | PGP Key ID:
Amsterdam, The Netherlands (X) <-> Melbourne, Australia ( ) | 0x6B91B584
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple default routes j-k-l@mail.ru Linux Networking 0 04-09-2008 11:20 AM
Multiple default routes - sorting by interface priority =?UTF-8?B?TGFzc2UgS8Okcmtrw6RpbmVuIC8gVHJvbmlj?= Linux Networking 2 03-05-2006 11:02 AM
Two NIC cards => Possible to Configure Two Default Routes? beagle197@hotmail.com Linux Networking 8 09-27-2005 11:55 AM
independant default routes for separate nics Johnny Musacha Linux Networking 4 08-18-2004 03:16 AM
Multiple default routes Kool Breeze Linux Networking 5 12-04-2003 01:41 AM



1 2 3 4 5 6 7 8 9 10 11