2xWAN + 2xLAN + PCQ + ECMP

Hye

I wonder is it possible to make on one machine “Equal bandwidth sharing among users” (PCQ) + “Static Equal Cost Multi-Path routing”

Yes, every think is in examples in MT documentation but i dont know one thing, how to configure PCQ with 2x LAN and 2 WAN

I have two ISP (2xWAN) and 2x LAN

  • I dont know how to mark all traffic on LAN1(192.168.1.0/24) and LAN2 (192.168.2.0/24)

  • I add 2 PCQ type one for download and one for upload

/queue type add name=pcq-download kind=pcq pcq-classifier=dst-address
/queue type add name=pcq-upload kind=pcq pcq-classifier=src-address

I dont know how to make a queue tree for download/upload traffic
what can I put in parent=:?::?::?:

“/queue tree add parent=:?: queue=pcq-download packet-mark=users”
“/queue tree add parent=:?: queue=pcq-upload packet-mark=users”

Thank you for Help :smiley:

  • I dont know how to mark all traffic on LAN1(192.168.1.0/24) and LAN2 (192.168.2.0/24

use address lists or two mangle rules:

/ip firewall mangle add passthrough=yes out-interface=LAN1 dst-address=192.168.1.0/24 action=mark-connection new-connection-mark=customers_cn

/ip firewall mangle add passthrough=yes out-interface=LAN2 dst-address=192.168.2.0/24 action=mark-connection new-connection-mark=customers_cn

And a final rule to place a packet mark:

/ip firewall mangle add connection-mark=customers_cn action=mark-packet new-packet-mark=customers

I look to documentation and there is:

At first, mark all traffic, coming from local network 192.168.0.0/24 with a mark users:

/ip firewall mangle add chain=forward src-address=192.168.0.0/24
action=mark-connection new-connection-mark=users-con
/ip firewall mangle add connection-mark=users-con action=mark-packet
new-packet-mark=users chain=forward

I wonder if there shoud be src-address like in documentation or dst-address like in Eugene examples. What the difference between this examples.
Which examples is more efficient and better.

In documentaction I find examples
http://www.mikrotik.com/docs/ros/2.9/root/queue.content#6.54.6.3
but I have 2 WAN nad 2 LAN.
What must I change in this examples to work witch 2x WAN and 2x LAN

imho eguene made good example:

you mark customers connections and then packets on all customer connections (WAN and LAN) then use this mangle in queues.

in examples on MT manual there is example for one interface, that way ou can do that for ever connections you want to.

In documentaction is:
“At first, mark all traffic, coming from local network 192.168.0.0/24 with a mark users:”
follow on documentaction I wil do that:

/ip firewall mangle add chain=forward src-address=192.168.1.0/24
action=mark-connection new-connection-mark=users-con

/ip firewall mangle add chain=forward src-address=192.168.2.0/24
action=mark-connection new-connection-mark=users-con

/ip firewall mangle add connection-mark=users-con action=mark-packet
new-packet-mark=users chain=forward

now on documentaction is:
“Now we will add 2 new PCQ types. The first, called pcq-download will group all traffic by destination address. As we will attach this queue type to the Local interface, it will create a dynamic queue for each destination address (user) which is downloading to the network 192.168.0.0/24. The second type, called pcq-upload will group the traffic by source address. We will attach this queue to the Public interface so it will make one dynamic queue for each user who is uploading to Internet from the local network 192.168.0.0/24.”

/queue type add name=pcq-download kind=pcq pcq-classifier=dst-address
/queue type add name=pcq-upload kind=pcq pcq-classifier=src-address

AND NOW I HAVE TWO LAN INTERFACE AND TWO WAN INTERFACE
and I dont know “attach this queue type to the Local interface” in this rule :
/queue tree add parent=Local queue=pcq-download packet-mark=users

what should I put in parent options “… parent=LAN1,LAN2…??” this is not work

Maybe there is a different way to do that.
Maybe someone help me, becouse I waste a lot of time.