Networking Forums

Networking Forums > Computer Networking > Linux Networking > Redundancy with second default route

Reply
Thread Tools Display Modes

Redundancy with second default route

 
 
David
Guest
Posts: n/a

 
      10-13-2003, 04:46 PM
Is it possible to have a second default route in linux? We are
looking to have a backup default gateway (with another internet
service) just in case the first fails.

However, I am unsure if the use of metrics would work as a secondary
gateway, and what would tell the unix box the first gateway was down?
Is there a script that would ping the first gateway, then switch to
the new gateway? If so, does it exist now and where so that I may
modify it for our purposes?

Thanks,
David
 
Reply With Quote
 
 
 
 
Vincent Fox
Guest
Posts: n/a

 
      10-13-2003, 05:20 PM
(E-Mail Removed) (David) writes:

>Is it possible to have a second default route in linux? We are
>looking to have a backup default gateway (with another internet
>service) just in case the first fails.


>However, I am unsure if the use of metrics would work as a secondary
>gateway, and what would tell the unix box the first gateway was down?
>Is there a script that would ping the first gateway, then switch to
>the new gateway? If so, does it exist now and where so that I may
>modify it for our purposes?


Look at the Advanced Routing HowTo.
Particularly about "ip route equalize".

I used this to split bandwidth by round-robin on two
separate DSL lines. Very cool.

HOWEVER, true failover would involve having agreed upon
protocols for the routers to heartbeat each other. Which does
not currently exist AFAIK in a standardized protocol. If you
are going Cisco-to-Cisco or Linux-to-Linux fine, otherwise SOL.
You can kludge something together with a cron job that pings
the nearest gateways, but it's a kludge. And when your cron
job mistakenly shuts both down you will be SOL.

I was happy enough just doing it manually. They would call me
that "somethings' wrong with the net!" and I'd login remotely to
the Linux gateway via whichever DSL was still up, and do an
ifconfig down on the other/dead one. That's really all you have to
do is down the dead interface and ip route will then send all
traffic to the remaining one that is up.

--
Vincent Fox
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!pri sm!vf5
Internet: (E-Mail Removed)
 
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 Gateways for Failover Redundancy Christos Kritikos Windows Networking 3 09-30-2008 01:23 PM
cannot set the default route in a rh9 box Monroe_Buffalo Linux Networking 2 11-11-2005 06:43 PM
RH9 default route Fabio C. Linux Networking 2 04-14-2004 12:07 PM
To delete an old default route George Bell Linux Networking 3 12-14-2003 01:49 AM
Default route - help... Adam Linux Networking 1 07-08-2003 01:23 PM



1 2 3 4 5 6 7 8 9 10 11