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 8.8.8.8 (recursive for ISP1) & 8.8.4.4 (recursive for ISP2)
2. Ping 8.8.8.8 or 8.8.4.4 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.
Thank you.