LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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


Reply
  Search this Thread
Old 05-09-2019, 01:45 PM   #1
bertram.fukuda
LQ Newbie
 
Registered: Jun 2016
Posts: 3

Rep: Reputation: Disabled
"Failover" default gateway


Hi. I'm running into an issue I can't figure out. We have a system that has 2 interfaces, one attached to our intranet and the other a dummy non-connected. The reason for the dummy interface is to allow one of our application to remain running regardless of network connectivity. What I need to configure is if eth0 is active eth0 is the default gateway. If eth0 is disconnected, the dummy ip becomes the default gateway. When eth0 is re-connected, it resumes as the default gateway. I've looked at bonding and policy-based routing but not sure either is the best solution. Currently, we have cron job that runs every 5 minutes to check the status of eth0, if it's down it switches over the default gateway but would really like to figure out something a little cleaner/nicer than this. Any thoughts?

Thanks!
 
Old 05-16-2019, 02:35 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,689

Rep: Reputation: 143Reputation: 143
If you use bonding interface, bond module can take care of fail-over when one of two interface is down.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reversing Default gateway failover slacky Linux - Networking 2 11-11-2010 02:05 PM
Gateway/Router failover jetson21 Linux - Networking 14 04-01-2010 09:37 AM
non-default route to static host through gateway for ppp failover testing jrscandora Linux - Networking 3 04-21-2009 02:20 AM
Where should I configure the default gateway, "ifcfg-eth0" or "network"? huntkey Linux - Server 5 01-05-2009 09:41 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration