Community discussions

MikroTik App
 
User avatar
dlabreu
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri May 08, 2009 10:14 am
Location: South Africa

Script that delay the interface to startup

Sun Jun 03, 2012 9:48 pm

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
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Script that delay the interface to startup

Mon Jun 04, 2012 12:35 am

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
 
User avatar
dlabreu
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri May 08, 2009 10:14 am
Location: South Africa

Re: Script that delay the interface to startup

Mon Jun 04, 2012 12:59 am

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
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Script that delay the interface to startup

Mon Jun 04, 2012 1:24 am

yes, you can do it