Community discussions

MikroTik App
 
newbz
just joined
Topic Author
Posts: 10
Joined: Wed Jan 04, 2017 8:02 am

Lease script

Wed Jan 04, 2017 8:13 am

hey guys, sorry but i m not very good with mikrotik os, script etc :(
a friendly tech came and put this script

:local scriptComment "DHCPMakeStatic"
:global leaseBound
:global leaseServerName
:global leaseActMAC
:global leaseActIP

:set scriptComment ("+" . $scriptComment)

:if ($leaseBound = 1) do={
/ip dhcp-server lease {
:foreach x in=[/ip dhcp-server lease find] do={/ip dhcp-server lease make-static $x };
/ip dhcp-server lease set [find server=dhcp1] rate-limit="2M/20M"

}
}
} else={

}


i want to put some more things, i tried to look some video about mikrotik queue tree and others, but it was like my brain was melting slowly :D

if anyone can help me i woud like to add some part where i can setup the ratelmit of android and the ratelimit of two or thee statics ip,
i am inside a guesthouse with 16 rooms and i really need to setup the wifi a bit better :)
it is just i got no idea what to write and where

i am very thanks full if someone can help me about that

Image
 
User avatar
Sinan
Trainer
Trainer
Posts: 129
Joined: Tue Sep 01, 2015 7:00 am

Re: Lease script

Wed Jan 04, 2017 10:44 pm

I dont get what you want exactly !
 
newbz
just joined
Topic Author
Posts: 10
Joined: Wed Jan 04, 2017 8:02 am

Re: Lease script

Thu Jan 05, 2017 7:11 am

i want to write more lines inside the previous script i posted, i woud like to add some part where i can setup the ratelmit of android and the ratelimit of two or thee statics ip, When those asking for lease.