Syed Jahanzaib Personal Blog to Share Knowledge !

November 24, 2015

Quick Note: Limit interface total bandwidth by Queue Tree

Filed under: Mikrotik Related — Tags: , , — Syed Jahanzaib / Pinochio~:) @ 3:12 PM



Limit interface total bandwidth , Lets say we want to limit ether1 interface (wan or whatever) to total 1 mb for upload / download.

Use following.

/ip firewall mangle
add action=mark-packet chain=prerouting comment="Mark Packets for Upload on WAN interface / jz" in-interface=ether1 new-packet-mark=upload
add action=mark-packet chain=postrouting comment="Mark Packets for Download on WAN interface / jz" new-packet-mark=download out-interface=ether1

/queue tree

add comment="Limit Total Traffic to 1mb in Queue Tree / Jz" disabled=yes max-limit=1M name=total-traffic parent=global queue=default
add comment="Limit upload Packets marked by mangle / Jz" disabled=yes name=upload packet-mark=upload parent=total-traffic queue=default
add comment="Limit download Packets marked by mangle / Jz" disabled=yes name=download packet-mark=download parent=total-traffic queue=default


You can use it to distribute specific amount of bandwidth to specific subnet or number of users. Example if you have 10 mb of bandwidth link and you want to distribute 5 mb to specific number of users. Lot of otehr queuing trick you can do.

Syed Jahanzaib



  1. HI There,

    I want to limit by selected Source IP-Address (Generally HTTP Port 80 or SSL Port 443) (different for Generally in the direction from internet (dest IP, port 80) back to desktop – Download direction.

    I have a bridge that bridges two interfaces eth0-eth1 running at 15 Gbps, with approximately 80,000 devices/users/endpoints all with unique internet IP-Addresses and its aware which is Lan and Internet. Each IP-address in maps to a username with no natting.

    Can yo ushow how to do this?

    Thanks MBS

    On 24 November 2015 at 21:12, Syed Jahanzaib Personal Blog to Share


    Comment by mario sanguineti — November 24, 2015 @ 3:37 PM

  2. Hi, what if you have adsl 5Mb up and 1Mb down for example?


    Comment by Bane Ivosev — November 24, 2015 @ 6:21 PM

  3. Hi, Could You please explain how to efficiently create mangle and queue on Mikrotik connected to ADSL line (eg 10Mbit download and 1 Mbit upload) in ROS 6?


    Comment by Rad — December 1, 2015 @ 1:32 AM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: