run once on interface down
Posted: Wed Feb 17, 2021 3:34 am
I'm trying this... It's a PPPoE interface called "INTERNET" ... my LTE USB modem hangs after some time and needs a hard reboot to start working again... interface disable/enable doesn't help... so only
helps.... so I'm trying to have a failover to LTE when interface goes down, but if I put this into scheduler to run each 10 seconds...
It keeps resetting the USB LTE modem each 10 seconds until PPPoE interface is back up... so it's not a solution, obviously.
How to run it once on interface down? Or any other solution. Thank you
Code: Select all
/system routerboard usb power-reset
Code: Select all
:if ([/interface get INTERNET running] = false) do={
/system routerboard usb power-reset
}
How to run it once on interface down? Or any other solution. Thank you