I have some trouble choosing the default route between two routes.
The choice based on “distance” works perfect if the default route with lower distance dies - automatically with the another route with higher distance takes over.
My problem is that my default route rarely dies, just drop the throughput -that is measurable with ping times over 1300ms.
Is there any script or another smart solution how to detect those events and in such cases automatically use a route with higher distance instead?
Is there a way to switch route based on actual throughput/bandwidth of the connection?
Example: If ISP1/route1 bw is under 20Mbps, switch to ISP2/route2.