Linux – Failover Internet connection

failoverlinuxnetworking

In my Linux server i have three network cards. The eth0 card is connected to ISP1, the eth1 card is connected to LAN and the eth3 card is connected to ISP2.

What i want to do is to automatically use eth3 as Internet connection if the eth0 connection fails. How can this be done?

Another problem is that my firewall is referring to eth0 as the server is doing NAT for clients this would be broken if eth3 is taken in use, how can this be solved?

Best Answer

Here's a link you might find helpful if your network is simple enough: Fallback gateways. For more complicated situations, you'll need solutions like Quagga, an implementation of OSPF protocol for Linux.

Related Topic