hi,
i need a simple configuration of PCQ for my ip network of 10.5.0.0/24 at rate limit of 256k upload and 1024k download so that 50 of users may get Equal bandwidth by PCQ.
Any configuration help from anyone ?
regards,
Litu
hi,
i need a simple configuration of PCQ for my ip network of 10.5.0.0/24 at rate limit of 256k upload and 1024k download so that 50 of users may get Equal bandwidth by PCQ.
Any configuration help from anyone ?
regards,
Litu
Hi,
Material below taken from http://wiki.mikrotik.com/wiki/PCQ_Examples , edited to meet your needs.
There are two ways how to make this: using mangle and queue trees, or, using simple queues.
- Mark all packets with packet-mark all:
/ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=all passthrough=no
- Setup two PCQ queue types - one for download and one for upload. dst-address is classifier for user’s download traffic, src-address for upload traffic:
/queue type add name=“PCQ_download” kind=pcq pcq-rate=1024k pcq-classifier=dst-address
/queue type add name=“PCQ_upload” kind=pcq pcq-rate=256k pcq-classifier=src-address
- Finally, two queue rules are required, one for download and one for upload:
/queue tree add parent=global-in queue=PCQ_download packet-mark=all
/queue tree add parent=global-out queue=PCQ_upload packet-mark=allIf you don’t like using mangle and queue trees, you can skip step 1 just do step 2 and step 3 would be to create one simple queue as shown here:
/queue simple add queue=PCQ_upload/PCQ_download target-addresses=10.5.0.0/24
I would prefer to go through http://wiki.mikrotik.com as it has much more enhanced exampled of bandwidth restrictions.