Page 1 of 1

Script that delay the interface to startup

Posted: Sun Jun 03, 2012 9:48 pm
by dlabreu
Hi to all , i need some help on a script.

I am very new on do script for Mikrotik and i need to do a very simple script , that every time that the routerboard start it delay one interface to start in about 60 seconds.

Or we also can do a script that every time that the routerbaord start , it disable the interface and enable again.


Is that possible to do ?


Thanks

Re: Script that delay the interface to startup

Posted: Mon Jun 04, 2012 12:35 am
by c0d3rSh3ll
interface ethernet disable ether1; delay delay-time=60; interface ethernet enable ether1

and then add a scheduler execute this script
start time: startup.
on event: the script

Re: Script that delay the interface to startup

Posted: Mon Jun 04, 2012 12:59 am
by dlabreu
Hi There , thanks for your help , just a small question , my interface is a openvpn client , can i change the eth1 on the script to my openvpn interface?


Thanks

Re: Script that delay the interface to startup

Posted: Mon Jun 04, 2012 1:24 am
by c0d3rSh3ll
yes, you can do it