Ad Code

Responsive Advertisement

Script Auto Simple Queue for Client DHCP


taro di dhcp server script, penampakan ada di bawah. silahkan modif sesuai kebutuhan.


:local clientQueue [/queue simple find name="CLIENT DHCP"]
:local networkAddress "192.168.2.0/24"
:if ([:len $clientQueue] = 0) do={
  /queue simple add name="CLIENT DHCP" max-limit=50M/50M target="$networkAddress"
}
:local leaseHostName [/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name]
:local clientName "$leaseHostName-$leaseActMAC"
:if ($leaseBound = "1") do={
  /queue simple add name=$clientName target=($leaseActIP . "/32") max-limit=5M/5M parent="CLIENT DHCP"
} else={
  /queue simple remove $clientName
}
Close Menu