Requirement:
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.
Regard’s
Syed Jahanzaib
Filed under: Mikrotik Related
