Created
November 22, 2025 02:49
-
-
Save Bytexionl/6f325826e7e2c4e87e54b16be03a7cb7 to your computer and use it in GitHub Desktop.
Bandwidth limit on all your existing simple queues with one command in MikroTik CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #To set a 10 Mbps limit on all your existing simple queues with one command in MikroTik CLI, you can use the following loop script: | |
| :foreach i in=[/queue simple find] do={/queue simple set $i max-limit=10M/10M} | |
| #How the Command Works | |
| :foreach i in=[/queue simple find] do={...}: This part of the command iterates through all existing simple queues. | |
| [/queue simple find] generates a list of all simple queues (their internal IDs). | |
| :foreach i in [...] assigns each ID to the variable $i in turn. | |
| do={...} specifies the action to perform for each queue. | |
| /queue simple set $i max-limit=10M/10M: This command modifies the properties of the specific queue identified by the current value of $i. | |
| max-limit=10M/10M sets the maximum upload and download bandwidth for that queue to 10 Mbps (10M for upload and 10M for download). | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very Helpfull comand for set a bandwidth with one comand for all Queue