LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 04-05-2006, 04:51 AM   #1
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 167
Thanked: 0
Dual gateways


[Log in to get rid of this advertisement]
basically our setup is as follows:
Code:
                              internet
                                  |
                                  |
                              LinuxRouter
                                  |
                                  |
                        __________|__________        
Subnet 192.168.1.0/24  |                     |
                    Router1               Router2
                       |                     |
                       |                     |
                       |_____________________|
                                  |
                                  |
                     Workstation Subnet 192.168.2.0/24
Router 1 and 2 route from the workstation subnet out to the LinuxRouter fine, and all the traffic comes back via router1, as thats the default gateway for the linuxrouter interface on that subnet.

There are 2 different gateways set on the LinuxRouter, router1(192.168.1.100, metric 1) and router2(192.168.1.102, metric 2). When router1 (The default) goes down, the LinuxRouter is no longer able to route packets to the workstation subnet. Is there a way to detect that either of the gateways has gone down, to switch to the other? Via a script/program of somesorts?

Joel
joel112 is offline     Reply With Quote
Old 04-05-2006, 08:20 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 33,327
Thanked: 182
there are plenty of ways to configure gateway failovers and such, i'd suggest looking at some docs at lartc.org for details of configuring these more advanced routing scenarios.the alternative angle you may want to look at is resilience within the routers themselves, and have a floating address fail over between the two boxes in the event of a failured. for this form of resilience, check linux-ha.org for details of heartbeat monitoring and such.
acid_kewpie is offline  
Tag This Post
Reply With Quote
Old 04-06-2006, 10:53 AM   #3
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: SuSe 9.2 & 10, Gentoo, knoppix, DSL
Posts: 602
Thanked: 3
You want to implement VRRP on both sides of your routers. VRRP allows the two interfaces on a subnet to hide behind one virtual MAC / IP pair. One acts as primary the other as backup. If the primary goes down the backup simply starts routing instead. Implement this on both sides of your routers and you have a fully redundant pair.
baldy3105 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two gateways? candyman123 Linux - Networking 1 09-08-2005 01:36 PM
Gateways Esmo2000 Linux - Networking 1 01-03-2005 03:49 PM
using dual gateways on my linux box .. miamitj Linux - Networking 4 04-26-2004 01:40 PM
2 Gateways Equis Linux - Networking 1 11-15-2003 04:58 AM
2 Gateways def1014 Linux - Networking 3 10-24-2002 06:21 PM


All times are GMT -5. The time now is 07:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration