Hi,
I need help on how to set a script which is ping a specific address using a specific interface. The situation is as follows:
Run a ping to 8.8.8.8 using interface pppoe-out1
If the ping failed within 10 packets, it would change the route distance pppoe-out1 to 2 and pppoe-out2 to 1
And vice versa.
Basically, a failover. I would have used the check gateway, but sometimes the interface connected to the pppoe server but no internet. That is why I want to use the script.
Thanks in advance