Limit Bandwidth on Mikrotik with Simple Queue

The simplest way to limit data rate for specific IP addresses and subnets on Mikrotik router.

Connect via SSH, and change to simple queue:

[[email protected]] > queue simple

Add a new rule to limit upload and download speed to a maximum of 16Mb/s (16 Megabits == 2 Megabytes) for 10.1.1.17 IP address:

[[email protected]] /queue simple> add comment="user_limit" target=10.1.1.17/32 dst=0.0.0.0/0 max-limit=16M/16M name="user" parent=none priority=8/8 queue=default-small/default-small disabled=no

Note that the rule above will also affect LAN speed.

[[email protected]] /queue simple> print
Flags: X - disabled, I - invalid, D - dynamic 
0    ;;; user_limit
     name="user" target=10.1.1.17/32 parent=none packet-marks="" priority=8/8 queue=default-small/default-small limit-at=0/0 max-limit=16M/16M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s

To disable the rule:

[[email protected]] /queue simple> disable 0
[[email protected]] /queue simple> print 
0 X  ;;; user_limit
     name="user" target=10.1.1.17/32 parent=none packet-marks="" priority=8/8 queue=default-small/default-small limit-at=0/0 max-limit=16M/16M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s

To remove the rule:

[[email protected]] /queue simple> remove 0

4 thoughts on “Limit Bandwidth on Mikrotik with Simple Queue

  1. Is target and destination IP reverse? you example did not limit anything .. ..

    confuse …

    :(

  2. does this work in bridge mode? I have been trying this simple queue for 1 week and nothing seems to work. Any idea what’s wrong?

    Flags: X – disabled, I – invalid, D – dynamic
    0 ;;; user_limt
    name=”user” target=192.168.51.9/32 parent=none packet-marks=”” priority=8/8
    queue=default-small/default-small limit-at=0/0 max-limit=2M/2M burst-limit=0/0
    burst-threshold=0/0 burst-time=0s/0s

Leave a Reply

Your e-mail address will not be published. Required fields are marked *