I have tried the PCQ setup that is in the documentation:
http://wiki.mikrotik.com/wiki/PCQ_Examples
I have had trouble with this so I have had to setup simple queues for my network.
On one segment I have over 2900 simple queues setup for clients and is getting hard to manage due to the number of ip’s used and queues needed.
What I need is 1 rule instead of 2900 individual rules to set a max limit for every ip to a certain rate.
Example: set every IP in the range of 10.2.1.0/21 to a max limit of 256k down and 1000k up.
I belive PCQ “should” accomplish this if setup right.
Am I right?
Thanks,
Dan-
ptsip
2
A lot of useful tips and trick in forum, pls search in forum.
mrz
3
Yes PCQ will do the trick. As it was mentioned in previous post, search the forum, this topic was discussed many times.
Lets say I need to shape ip’s 10.0.0.30 through 10.0.0.254.
When creating a rule I have to use x.x.x.x/24 . This shapes 254 addresses.
Then I need to create exclutions somehow for the first 30 ip’s I do not want shaped.
Is there a way to specify an ip range instead of an subnet?
10.0.0.30-10.0.0.254 instead of 10.0.0.0/24.
Thanks,
dan
Equis
5
Have a look at “address lists”
you can mark traffic etc
Will this work then?
ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=SHAPE-1 passthrough=no address-list=IP-RANGE-1
/queue type add name=“PCQ_download” kind=pcq pcq-rate=64000 pcq-classifier=dst-address
/queue type add name=“PCQ_upload” kind=pcq pcq-rate=32000 pcq-classifier=src-address
/queue tree add parent=global-in queue=PCQ_download packet-mark=SHAPE-1
/queue tree add parent=global-out queue=PCQ_upload packet-mark=SHAPE-1
Thanks,