Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Bytexionl/6f325826e7e2c4e87e54b16be03a7cb7 to your computer and use it in GitHub Desktop.

Select an option

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
#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).
@Bytexionl
Copy link
Author

Very Helpfull comand for set a bandwidth with one comand for all Queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment