Popular Posts

How to Setup Mikrotik Simple Queue from DHCP Lease ?

" Ekonetcomp is Home of Mikrotik Config "
How to Set Mikrotik Simple Queue from Dhcp Lease ?
    Mikrotik Simple Queue from DHCP Lease with Time burst for Dynamic User.
MikroTIK router have a DHCP server feature. Apparently there are additional features in that section. The DHCP server on the MikroTIK router can also be used to form a dynamic simple queue. This is very useful where most users use the network or all of them get an IP address automatically from the dhcp server.
    First, we must create a simple queue as the parent queue. The simple queue function will then be used as a parent by simple queue created by the Dhcp lease.
    Type the command below in winbox new terminal. 
/queue simple add max-limit=25M/25M name="LAN-Parent" target=192.168.0.0/24
Adjust the conditions with the network in your place.



This is the script:
# Mikrotik Simple Queue from DHCP Lease - ekonetcomp.blogspot.com
:local child "MacAddr - $leaseActMAC"
:if ($leaseBound = "1") do={
  /queue simple add name=$child  target=($leaseActIP."/32") limit-at=768k/768k max-limit=12800k/12800k burst-limit=25M/25M burst-threshold=17067k/17067k burst-time=30/30  priority=8/8 parent="LAN-Parent" comment=("Computer LAN ".[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name]);
} else={
  /queue simple remove $child
}
# Mikrotik Simple Queue from DHCP Lease - ekonetcomp.blogspot.com



Write the script above as shown in the image below

Simple Queue from DHCP Lease
Simple Queue from DHCP Lease



" Ekonetcomp is Home of Mikrotik Config "



6 Responses to "How to Setup Mikrotik Simple Queue from DHCP Lease ?"

" Ekonetcomp is Home of Mikrotik Config "
How to Set Mikrotik Simple Queue from Dhcp Lease ?     Mikrotik Simple Queue from DHCP Lease with Time burst for Dynamic User. MikroTIK router have a DHCP server feature. Apparently there are additional features in that section. The DHCP server on the MikroTIK router can also be used to form a dynamic simple queue. This is very useful where most users use the network or all of them get an IP address automatically from the dhcp server.     Fir…
  1. god work /32, because NOT work /22. Whats the solution?

    ReplyDelete
  2. I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! asic miner

    ReplyDelete
  3. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. audio video office

    ReplyDelete

Newer Post Older Post Home


Followers

My Profile

Depok, Jawa Barat, Indonesia