"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!
|