Community discussions

MikroTik App
 
phineasmax
just joined
Topic Author
Posts: 17
Joined: Fri Feb 12, 2016 10:33 am

PCC load balancing didn't use 2 WANs at the same time.

Sun Nov 27, 2016 6:14 am

Hello.
When I brought a hEx lite on February and setup PCC, it worked fine, speedtest up to 30mbps and downloaded files full speed (~4mb/s on http site) (I have 2x15mbps lines)
But recently, when I test on speedtest.net, It's only 15mbps. When I track bandwidth on winbox, I see that only one line work (either WAN1 or WAN2, not the same time.) and when I download files on http site, it's also use only one WAN.
I tried to reset and config again, many times but it's not working.
I checked and tested each WAN, it have no problem.
There's a picture in attachments that I captured when I test on speedtest, only wan2 working. Sometimes only wan1 working.
Here are my config
/interface bridge
add name=Local
/interface ethernet
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether3 ] name=WAN2
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp_pool1 ranges=192.168.100.2-192.168.100.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=Local name=dhcp1
/interface bridge port
add bridge=Local interface=ether2
add bridge=Local interface=ether4
/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-pppoe=yes
/ip address
add address=192.168.100.1/24 interface=Local network=192.168.100.0
add address=172.16.10.22/24 interface=WAN1 network=172.16.10.0
add address=172.16.0.33/24 interface=WAN2 network=172.16.0.0
/ip dhcp-server network
add address=192.168.100.0/24 dns-server=8.8.8.8,208.67.220.220 gateway=\
    192.168.100.1
/ip dns
set allow-remote-requests=yes cache-max-ttl=12h cache-size=5000KiB \
    max-udp-packet-size=512 servers=8.8.8.8,208.67.220.220
/ip firewall mangle
add action=accept chain=prerouting dst-address=172.16.10.0/24 in-interface=\
    Local
add action=accept chain=prerouting dst-address=172.16.0.0/24 in-interface=Local
add action=mark-connection chain=input in-interface=WAN1 new-connection-mark=\
    WAN1_conn
add action=mark-connection chain=input in-interface=WAN2 new-connection-mark=\
    WAN2_conn
add action=mark-routing chain=output connection-mark=WAN1_conn \
    new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_conn \
    new-routing-mark=to_WAN2
add action=mark-connection chain=prerouting comment="connection without vpn" dst-address-type=!local in-interface=Local new-connection-mark=\
    WAN2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting comment="connection without vpn" dst-address-type=!local in-interface=Local new-connection-mark=\
    WAN1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1_conn \
    in-interface=Local new-routing-mark=to_WAN1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2_conn \
    in-interface=Local new-routing-mark=to_WAN2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=WAN2
/ip route
add check-gateway=ping distance=1 gateway=172.16.10.1 routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=172.16.0.1 routing-mark=to_WAN2
add check-gateway=ping distance=1 gateway=172.16.10.1
add check-gateway=ping distance=2 gateway=172.16.0.1
Any help?
My router is running with the latest version (6.37.2)
You do not have the required permissions to view the files attached to this post.
 
Ape
Member Candidate
Member Candidate
Posts: 177
Joined: Sun Oct 06, 2013 3:32 pm
Location: Freiburg, Germany
Contact:

Re: PCC load balancing didn't use 2 WANs at the same time.

Tue Nov 29, 2016 7:02 pm

Hi,

PCC means "per connection classifier", so it's a expected behavior that you use only one line for one connection. PCC will use multiple WAN lines if you have multiple connections, but every connection can only use one WAN line.

Regards,
Ape

Who is online

Users browsing this forum: armandfumal, DanMos79, jamesperks and 106 guests