BACKUP INTERFACE
Posted: Thu Aug 10, 2023 2:02 pm
Hello friends, I have the following script:
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.{
/interface "ETHERT 1"
:if ([/ping 1.1.1.1 count=6] = 0) do={
/interface enable "ETHERT 2"} else={
/interface disable "ETHERT 2"}
}