MikroTik – Simple queue script – add all IP

To add all IPs in your MikroTik Simple queue, just open your MikroTik RouterOS terminal and run the following script.

:for x from 1 to 254 do={/queue simple add name="queue-$x" max-limit=2M/2M target="192.168.1.$x"}

1 to 254 on ip-de vahemik
queue-$x - queue nimi kuni (queue-)
max-limit=2M/2M - queue kiirus nii allalaadimine kui ka üles laadimine
192.168.1.$x - ip vahemik millele kiirused peale lähevad

Here in max-limit variable you can define max speed upload/download. For example I used 2M for both download and upload. This simple loop script will easily add all of your IPs in your MikroTik Simple Queue. After that you can manually modify when you need for any specific IP.