I have a Linux server running Debian which acts as a router/gateway for a network.
The server has 3 NICs on eth0 is the main ISP, on eth1 the backup ISP and on eth2 the network.
Is it possible to setup a script or something that will check if the connection with the main ISP is up and if not to switch(and setup the routes properly) to the backup ISP?
Debian – How to setup a backup internet connection from a second ISP
debianrouter
Best Answer
Please see the Linux Advanced Routing & Traffic Control documentation for "Routing for multiple uplinks/providers" here:
https://web.archive.org/web/20180304202946/http://lartc.org/howto/lartc.rpdb.multiple-links.html