Question - Loadbalancing/failover two ISP circuits with iproute2 policy routing
by JavaWannabe from LinuxQuestions.org on (#54DKR)
I have two ISP connections connected to a linux box.
I am able to successfully load share both ISP connections by using Iproute2 and creating a seperate routing table with IP rules.
I have a statement in my policy routing table which says to route any address from 1.0.0.0 - 127.255.255.255 out my verizon circuit,
and to route any address from 128.0.0.1 - 254.255.255.255 out my AT&T circuit.
The problem is when one circuit goes down then half my internet connections go down with it.
My question is, is there a way to cause the traffic to flow over to the other circuit when this condition occurs?
In my previous setup with iproute2, I did have one circuit working strictly as a backup circuit when the primary circuit went down and all traffic
would automatically flow over to the other circuit route, however I'm unable to accomplish this same behavior when using policy routing.


I am able to successfully load share both ISP connections by using Iproute2 and creating a seperate routing table with IP rules.
I have a statement in my policy routing table which says to route any address from 1.0.0.0 - 127.255.255.255 out my verizon circuit,
and to route any address from 128.0.0.1 - 254.255.255.255 out my AT&T circuit.
The problem is when one circuit goes down then half my internet connections go down with it.
My question is, is there a way to cause the traffic to flow over to the other circuit when this condition occurs?
In my previous setup with iproute2, I did have one circuit working strictly as a backup circuit when the primary circuit went down and all traffic
would automatically flow over to the other circuit route, however I'm unable to accomplish this same behavior when using policy routing.