Hi there,
Is there a way to restart (disable/enable) the wan port (in this case ether2) when the connection is lost?
Thank you!
/interface ethernet monitor ether3 once do={
:if ($status = "no-link") do={
/interface set [find name=ether3] disabled=yes
:delay 2s
/interface set [find name=ether3] disabled=no
:log error message="Interface lost connection"
}
}
:local IF "ether3"
/interface ethernet monitor $IF once do={
:if ($status = "no-link") do={
set [find name=$IF] disabled=yes
:delay 2s
set [find name=$IF] disabled=no
:log error message="Interface lost connection"
}