Hello friends, I have the following script:
{
/interface “ETHERT 1”
:if ([/ping 1.1.1.1 count=6] = 0) do={
/interface enable “ETHERT 2”} else={
/interface disable “ETHERT 2”}
}
What I want to do with the script is that when the “ETHERT 1” interface fails the internet, enable the “ETHERT 2” interface, which will have a backup internet line for when said scenario occurs, and when the port number 1 have internet again the script re-disable port 2. Thanks for your help.
Thanks for your answer friend, what you sent me is a balance with failover. I need to have another line disabled so that it is activated when the main line goes down, I don’t want to balance it, the script is very clear.
You don’t need a complex script to switch from ISP1 to ISP2 and vice versa, with a simple Failover with recursive routes you have it solved, I have it (Fiber + LTE) and it works very well. Luck.
Do you have it as a backup in case the main port doesn’t work?
What I want is for the script to ping only interface 1, as I have it, is it okay? Thanks again