Community discussions

MikroTik App
 
MatiasMM
just joined
Topic Author
Posts: 6
Joined: Sat Apr 24, 2021 4:54 pm

PCC load balancing - My headache

Tue Apr 27, 2021 7:26 pm

PCC load balancing - My headache

Dear, I have configured the PCC in my RB3011 with hotspot but the PCC is not working !!! There is only one WAN, the other two do not.
I have followed the instructions to create the PCC from the wiki but obviously something is wrong.

interface ISP1 with public IP to a PPPOE (40megabytes)
ISP2 interface with client dhcp (20 megabytes)
ISP3 interface with client dhcp (20megas)
LAN interface, has 2 vlans, a bridge and hotspot. (LAN= 172.16.100.0/24, vlan1= 10.50.0.1/24, vlan2 hotspot=10.40.10.0/24)

In the classifier I have expelled an IP of the printer since otherwise the users could not send prints over the network. Of course I do not know if it is correct to do it this way.

Masquerade WAN independent, is OK!


I leave the configuration below.

I will appreciate any comments to solve the problem

/ip route
add check-gateway=ping comment="BALANCEO PCC - RUTAS" distance=1 gateway=\
    xx.xx.xx.xx routing-mark=PCC_to_isp1
add check-gateway=ping distance=1 gateway=192.168.100.1 routing-mark=\
    PCC_to_isp2
add check-gateway=ping distance=1 gateway=172.29.4.1 routing-mark=PCC_to_isp3
add check-gateway=ping comment="RUTA 40" distance=1 gateway=\
    XX.XX.XX.XX
add check-gateway=ping comment="RUTAS 20" distance=2 gateway=\
    172.29.4.1
add check-gateway=ping comment="RUTAS 20" distance=3 gateway=\
    192.168.100.1

/ip firewall mangle
add action=accept chain=prerouting comment=\
    "PCC Accept WAN - ISP1, ISP2 y ISP3" dst-address=xxx.x.xxx.xx
add action=accept chain=prerouting dst-address=192.168.100.0/24
add action=accept chain=prerouting dst-address=172.29.4.0/24

add action=mark-connection chain=prerouting comment=\
    " BALANCEO PCC - MARCAS Entrantes ISP1, 2 y 3" connection-mark=no-mark \
    in-interface=ISP1 new-connection-mark=PCC_isp1_conn passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
    yes in-interface="pppoe-40" new-connection-mark=PCC_isp1_conn \
    passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark \
    in-interface=ISP2 new-connection-mark=PCC_isp2_conn passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark \
    in-interface=ISP3 new-connection-mark=PCC_isp3_conn passthrough=yes

add action=mark-connection chain=prerouting comment=\
    "BALANCEO PCC  - 50% ISP1 25% ISP2 25% ISP3" connection-mark=no-mark \
    dst-address-list="!Sin PCC" dst-address-type=!local hotspot=auth \
    in-interface-list=LAN new-connection-mark=PCC_isp1_conn passthrough=yes \
    per-connection-classifier=both-addresses:4/0 src-address-list="!Sin PCC"
add action=mark-connection chain=prerouting connection-mark=no-mark \
    dst-address-list="!Sin PCC" dst-address-type=!local hotspot=auth \
    in-interface-list=LAN new-connection-mark=PCC_isp1_conn passthrough=yes \
    per-connection-classifier=both-addresses:4/1 src-address-list="!Sin PCC"
add action=mark-connection chain=prerouting connection-mark=no-mark \
    dst-address-list="!Sin PCC" dst-address-type=!local hotspot=auth \
    in-interface-list=LAN new-connection-mark=PCC_isp2_conn passthrough=yes \
    per-connection-classifier=both-addresses:4/2 src-address-list="!Sin PCC"
add action=mark-connection chain=prerouting connection-mark=no-mark \
    dst-address-list="!Sin PCC" dst-address-type=!local hotspot=auth \
    in-interface-list=LAN new-connection-mark=PCC_isp3_conn passthrough=yes \
    per-connection-classifier=both-addresses:4/3 src-address-list="!Sin PCC"

add action=mark-routing chain=prerouting comment="BALANCEO PCC - Marcado del B\
    alanceo 50% ISP1 40% ISP2 10% ISP3 VIA LAN_BRIDGE" connection-mark=\
    PCC_isp1_conn in-interface-list=LAN new-routing-mark=PCC_to_isp1 \
    passthrough=yes
add action=mark-routing chain=prerouting connection-mark=PCC_isp2_conn \
    in-interface-list=LAN new-routing-mark=PCC_to_isp2 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=PCC_isp3_conn \
    in-interface-list=LAN new-routing-mark=PCC_to_isp3 passthrough=yes

add action=mark-routing chain=output comment=\
    "BALANCEO PCC - Salidas ISP 1, 2 y 3" connection-mark=PCC_isp1_conn \
    new-routing-mark=PCC_to_isp1 passthrough=yes
add action=mark-routing chain=output connection-mark=PCC_isp2_conn \
    new-routing-mark=PCC_to_isp2 passthrough=yes
add action=mark-routing chain=output connection-mark=PCC_isp3_conn \
    new-routing-mark=PCC_to_isp3 passthrough=yes
 
MatiasMM
just joined
Topic Author
Posts: 6
Joined: Sat Apr 24, 2021 4:54 pm

Re: PCC load balancing - My headache

Wed Apr 28, 2021 2:55 pm

Hello, someone who can guide me to see what may be happening?

Who is online

Users browsing this forum: almdandi, andrewrmack, MarkusT, McSee, NetworqAndy, raiser, zabloc and 65 guests