hi people!
i need some script, which will enable pppoe interface in 6h am, and disable it at 19h pm. i have mikrotik 2.9.27. thanks!
PS: HAPPY NEW YEAR to everybody ![]()
You will need something like this. You should edit this to fit your interface you need to enable and disable.
/system scheduler
add comment=“” disabled=no interval=1d name=“Enable PPPoE” on-event=“/interface pppoe-client enable pppoe-out1” start-date=jan/01/1970 start-time=06:00:00
add comment=“” disabled=no interval=1d name=“Disable PPPoE” on-event=“/interface pppoe-client disable pppoe-out1” start-date=jan/01/1970 start-time=19:00:00
it doesn’t working
:(![]()
i trying this:
:global ddns-interface "pppoe_provider"
/interface pppoe-client enable [find name=$ddns-interface]
but, doesn’t working ![]()
Try not to use - in your scripts. You can either use " around your variables like so…
:global “ddns-interface” “pppoe_provider”
/interface pppoe-client enable [find name=$“ddns-interface”]