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"}

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.