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 184.108.40.206 (recursive for ISP1) & 220.127.116.11 (recursive for ISP2)
2. Ping 18.104.22.168 or 22.214.171.124 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.