11. Mikrotik PCQ Share Equally Bandwidth for all hosts




Here is a script:

/queue type
add kind=pcq name=PCQ-Upload pcq-classifier=src-address \
    pcq-dst-address6-mask=64 pcq-rate=2M pcq-src-address6-mask=64
add kind=pcq name=PCQ-Download pcq-classifier=dst-address \
    pcq-dst-address6-mask=64 pcq-rate=2M pcq-src-address6-mask=64

/queue simple
add max-limit=10M/10M name=Limit-All queue=PCQ-Upload/PCQ-Download target=\
    192.168.2.0/24


Note:
- max-limit=10M/10M: is total bandwidth.
- pcq-rate=2M ; maximum speed for a host is only 2Mb

if you want to unlimited speed for one user, you just set pcq-rate=0. It mean that
Queue will share Equally Bandwidth for all user.

/queue type
add kind=pcq name=PCQ-Upload pcq-classifier=src-address \
    pcq-dst-address6-mask=64 pcq-rate=0 pcq-src-address6-mask=64
add kind=pcq name=PCQ-Download pcq-classifier=dst-address \
    pcq-dst-address6-mask=64 pcq-rate=0 pcq-src-address6-mask=64

Previous
Next Post »