I will show you how to manage the Mikrotik Queue Tree to limit the total bandwidth. For example you can split a 2Mbps bandwidth to 512Kbps per 4 users. In my example i’ll limit upload+download=2Mbps
First of all we need to mark the packets to be traced in the queue.
/
ip
firewall
mangle
add
action
=
mark-packet
chain
=
prerouting
in-interface
=
ether3
new-packet-mark
=
upload
add
action
=
mark-packet
chain
=
postrouting
out-interface
=
ether3
new-packet-mark
=
download
Then we’ll set up the queue tree.
/
queue
tree
add
max-limit
=
20M
name
=
total-traffic
parent
=
global
queue
=
default
add
name
=
upload
packet-mark
=
upload
parent
=
total-traffic
queue
=
default
add
name
=
download
packet-mark
=
download
parent
=
total-traffic
queue
=
default
Thanks.
No comments:
Post a Comment