Recursive failover has been working perfect for my connection with 2 ISPs. Last week my main ISP experienced intermittent issues. You could still ping but it was intermittent with latency spikes. I ended up having to disable (renumber) the route manually.
How would I apply recursive failover by checking for packet loss?
I suppose the script logic would be:
1. Check 22.214.171.124 (recursive for ISP1) & 126.96.36.199 (recursive for ISP2)
2. Ping 188.8.131.52 or 184.108.40.206 ten times
3. If packet loss >=20% then find route by comment and disable
4. If packet loss <20% then find route by comment and enable
Are there past topics that you can refer me to.