Code: Select all
{
:if ([/ping XX.XX.XX.XX count=2]>0) do={
/interface disable 2
:delay 2s
/interface enable 2
}
}
{
:if ([/ping XX.XX.XX.XX count=2]>0) do={
/interface disable 2
:delay 2s
/interface enable 2
}
}
this scrip not working in my router v3.30 on x86 and can i make this scrip to disable just one interface example /interface disable wlan1 :delay 2s /interface enable wlan1Please check may script to disable and enable interface after ping failed:
Code: Select all{ :if ([/ping XX.XX.XX.XX count=2]>0) do={ /interface disable 2 :delay 2s /interface enable 2 } }
{
:if ([/ping XX.XX.XX.XX count=2]>0) do={
/interface disable [find name=wlan1]
:delay 2s
/interface enable [find name=wlan1]
}
}