DHCP
#Lease to Simple Queues
#V.1 By Virtual IT Export
:local queueName "Client- $leaseActMAC";
:if ($leaseBound = "1") do={
/queue simple add name=$queueName target=($leaseActIP . "/32") limit-at=2048k/2048k max-limit=3096k/3096k comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name];
} else={
/queue simple remove $queueName
}
FIXED
/queue simple
:for i from=1 to=254 do={add name=$i target=("172.16.0.$i") max-limit=2M/3M};
/queue simple
:for x from=2 to=254 do={add name=queue-$x target=("10.0.0.$x") max-limit=2M/2M};
/queue simple
:for i from=1 to=254 do={add name=("LAN-192.168.0.$i") target=("192.168.0.$i") max-limit=100M/200M};
:for i from=0 to=254 do={add name=("LAN-192.168.1.$i") target=("192.168.1.$i") max-limit=100M/200M};
:for x from=1 to=254 do={/queue simple add name="LAN0-$x" max-limit=10M/20M target="192.168.0.$x"}
/queue simple
:for i from=1 to=12 do={add name=("LAN-192.168.0.$i") target=("192.168.0.$i") max-limit=100M/200M};
:for i from=14 to=255 do={add name=("LAN-192.168.0.$i") target=("192.168.0.$i") max-limit=100M/200M};
:for i from=0 to=254 do={add name=("LAN-192.168.1.$i") target=("192.168.1.$i") max-limit=100M/200M};
/queue simple
:for i from=1 to=255 do={add name=("LAN-192.168.0.$i") target=("192.168.0.$i") max-limit=100M/200M};
:for i from=0 to=254 do={add name=("LAN-192.168.1.$i") target=("192.168.1.$i") max-limit=100M/200M};
Posted by L3UNIX to L3UNIX's deck (2020-11-27 16:30)