Creating Queues in one shot

Hello Friends.
I have more than 100 IP offered by DHCP.
I would like to create queues for all those IP in one shot
is it possible in one shot??? Or i have to do it manually one by one for 100 IP’s :frowning:

Any guides friends ??
It is really annoying if i have to manually add all the 100 IP’s to queues. :frowning:

Yep its ease are they all on the same sibme?


Sent from my iPhone using Tapatalk

Have a lool here http://forum.mikrotik.com/t/basic-script-loop-question/20006/1


Sent from my iPhone using Tapatalk

It doesn’t work for me it throws an error

[admin@MikroTik] /system script> :for e from 1 to 100 do={
{… /queue simple add name=(“IP-” . $e)
{... target-addresses=(“192.168.1.” . $e . “/32”)
expected end of command (line 3 column 1)
[admin@MikroTik] /system script> max-limit=32000/64000
syntax error (line 1 column 10)
[admin@MikroTik] /system script> }

This one worked though.

:for e from=3 to=100 do={
/queue simple add name=“wlan1-user $e” target=“192.168.1.$e” max-limit=384000/384000 queue=default/default total-queue=default
}

I just changed the “target-addresses” to “target”

Sorry for posting in wrong section. Moderators please please please move it to scripting section :slight_smile:

Thanks mate.