User Tools

Site Tools


mikrotik-pcq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mikrotik-pcq [2015/03/05 12:55] herwarthmikrotik-pcq [2015/03/05 13:00] (current) herwarth
Line 1: Line 1:
-/ip firewall mangle add chain=prerouting action=mark-packet in-interface=bridge-guest new-packet-mark=client-upload +~~NOTOC~~ 
-/ip firewall mangle add chain=prerouting action=mark-packet in-interface=dmz new-packet-mark=client-download+======Mikrotik add upload and download limit to routing======
  
-/queue type add name="pcq-download" kind=pcq pcq-rate=64000 pcq-classifier=dst-address +=====Configuration===== 
-/queue type add name="pcq-upload" kind=pcq pcq-rate=32000 pcq-classifier=src-address+====Add chain from Guest VLAN (for upload)====  
 +  /ip firewall mangle add chain=prerouting action=mark-packet in-interface=bridge-guest new-packet-mark=client-upload 
 +====Add chain from DMZ (for download)==== 
 +  /ip firewall mangle add chain=prerouting action=mark-packet in-interface=dmz new-packet-mark=client-download 
 + 
 +====Add queues with limits==== 
 +In this example we create a download limit of 64kbit and an upload of 32kbit. 
 + 
 +  /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 
 + 
 +====Link queues to chains==== 
 +  /queue tree add parent=global queue=pcq-download packet-mark=client-download 
 +  /queue tree add parent=global queue=pcq-upload packet-mark=client-upload
  
-/queue tree add parent=global queue=pcq-download packet-mark=client-download 
-/queue tree add parent=global queue=pcq-upload packet-mark=client-upload 
 {{tag>network}} {{tag>network}}
mikrotik-pcq.1425560100.txt.gz · Last modified: by herwarth