Community discussions

MikroTik App
 
dakky21
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 85
Joined: Sat Sep 17, 2005 8:26 pm
Location: Croatia

run once on interface down

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
/system routerboard usb power-reset
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...
:if ([/interface get INTERNET running] = false) do={
  /system routerboard usb power-reset
}
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
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: run once on interface down

Sun Sep 19, 2021 7:45 pm

Part 1) USB modem
What modem you use ? It's work as PPP or lte1 ?
For Example in PPP-out1 you have a "Dial On Demand" OFF ? If it's on then you have that problem that PPP will not stay connected.

Part 2) You miss your script. You should check running status of PPP-out1 or lte1 , dependence how your USB Device is recognize in system.

Who is online

Users browsing this forum: aoravent, Ellaham and 27 guests