Community discussions

MikroTik App
 
User avatar
Halfeez92
Member Candidate
Member Candidate
Topic Author
Posts: 101
Joined: Tue Oct 30, 2012 12:58 pm
Location: 127.0.0.1
Contact:

Help on script ping using specific interface

Wed Dec 07, 2022 4:27 am

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

Who is online

Users browsing this forum: No registered users and 23 guests