Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

how to PCC in version 7?

Tue May 18, 2021 12:53 pm

Hello
up until now I have used pcc load balancing in mikrotk version 6.45 with 2 sims
work without any problems .
I have upgrage to version 7 in order to use the quectel modem as LTE interface
but it doesn't work

when I try to setup my working configuration from start , I see the problem is in this part
/ip firewall mangle 
add action=mark-routing chain=prerouting connection-mark=WAN1_conn \
    in-interface=Local new-routing-mark=to_WAN1
 
/ip route
add check-gateway=ping distance=1 gateway=SIM1 routing-mark=to_WAN1
I get this error:
input does not match any value of new-routing-mark

waht is cahnge in version 7? what is the "new" command I need to put? and how do I make this works?

Thanks ,
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: how to PCC in version 7?

Tue May 18, 2021 2:38 pm

 
lilw
newbie
Posts: 38
Joined: Sun Jan 21, 2018 5:31 pm

Re: how to PCC in version 7?

Wed Dec 08, 2021 11:28 am

Today I upgraded to v7.1 and find out my network can't access internet with my route config. After a while with some suggestion around this forum, I find that I will need to fix the route, add 2 rules to the route/rules, edit the routes table without ping in check gateway. So it actually works right now.
 
chrisarzu
just joined
Posts: 4
Joined: Tue Feb 01, 2022 10:51 pm

Re: how to PCC in version 7?

Tue Feb 22, 2022 4:35 pm

Running RouterOS 7.2rc3, set up PCC and it's working, but a major issue I have is that the router itself cannot go out on the internet

Notice below that I added 4 routes, 2 in the main table, and 1 for each routing mark.
PCC works fine only when the 2 default routes in the main table are disabled on purpose, if I enable them, the router is able to go out the internet, but PCC stops working.
I am missing something, but not sure what is is, so a little help would be appreciated.
model = RBD52G-5HacD2HnD
/ip route
add disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=192.168.133.1 pref-src=0.0.0.0 routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=192.168.123.1 pref-src=0.0.0.0 routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.123.1@main pref-src=0.0.0.0 routing-table=WAN1toISP1 scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.133.1@main pref-src=0.0.0.0 routing-table=WAN2toISP2 scope=30 suppress-hw-offload=no target-scope=10

***************Below is the rest of the relevant config****************
/routing table
add fib name=WAN1toISP1
add fib name=WAN2toISP2
/interface list member
add comment=defconf interface=bridge list=LAN
/ip firewall mangle
add action=mark-connection chain=prerouting dst-address-type=!local in-interface-list=LAN new-connection-mark=WAN1Conn passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting dst-address-type=!local in-interface-list=LAN new-connection-mark=WAN2Conn passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1Conn dst-address-type=!local new-routing-mark=WAN1toISP1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2Conn dst-address-type=!local new-routing-mark=WAN2toISP2 passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether1WAN1
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether2WAN2
 
moutazsalem
just joined
Posts: 3
Joined: Sat Mar 26, 2022 4:33 pm

Re: how to PCC in version 7?

Sat Mar 26, 2022 4:36 pm

Running RouterOS 7.2rc3, set up PCC and it's working, but a major issue I have is that the router itself cannot go out on the internet

Notice below that I added 4 routes, 2 in the main table, and 1 for each routing mark.
PCC works fine only when the 2 default routes in the main table are disabled on purpose, if I enable them, the router is able to go out the internet, but PCC stops working.
I am missing something, but not sure what is is, so a little help would be appreciated.
model = RBD52G-5HacD2HnD
/ip route
add disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=192.168.133.1 pref-src=0.0.0.0 routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=192.168.123.1 pref-src=0.0.0.0 routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.123.1@main pref-src=0.0.0.0 routing-table=WAN1toISP1 scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.133.1@main pref-src=0.0.0.0 routing-table=WAN2toISP2 scope=30 suppress-hw-offload=no target-scope=10

***************Below is the rest of the relevant config****************
/routing table
add fib name=WAN1toISP1
add fib name=WAN2toISP2
/interface list member
add comment=defconf interface=bridge list=LAN
/ip firewall mangle
add action=mark-connection chain=prerouting dst-address-type=!local in-interface-list=LAN new-connection-mark=WAN1Conn passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting dst-address-type=!local in-interface-list=LAN new-connection-mark=WAN2Conn passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1Conn dst-address-type=!local new-routing-mark=WAN1toISP1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2Conn dst-address-type=!local new-routing-mark=WAN2toISP2 passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether1WAN1
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether2WAN2
I have the same exact issue, in addition, failover is not working as well, any help would be appreciated
i followed the instructions here https://help.mikrotik.com/docs/display/ ... mple3(PCC)
 
moutazsalem
just joined
Posts: 3
Joined: Sat Mar 26, 2022 4:33 pm

Re: how to PCC in version 7?

Tue Apr 26, 2022 4:28 am

got it sorted out, now the router has access, PCC is working, also failover is fine

/routing table
add fib name=to_WAN1
add fib name=to_WAN2

/ip firewall mangle
add action=accept chain=prerouting dst-address=192.168.50.0/24 in-interface=LAN
add action=accept chain=prerouting dst-address=192.168.60.0/24 in-interface=LAN
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN1 new-connection-mark=WAN1_conn
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN2 new-connection-mark=WAN2_conn
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface=LAN new-connection-mark=WAN1_conn per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface=LAN new-connection-mark=WAN2_conn per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1_conn in-interface=LAN new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_conn in-interface=LAN new-routing-mark=to_WAN2
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
/ip firewall nat

/ip route
add disabled=no distance=1 dst-address=161.35.244.216/32 gateway=192.168.50.1 routing-table=main scope=10 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=188.166.105.4/32 gateway=192.168.60.1 routing-table=main scope=10 suppress-hw-offload=no target-scope=10
add distance=1 gateway=192.168.50.1 routing-table=to_WAN1
add distance=2 gateway=192.168.60.1 routing-table=to_WAN1
add distance=1 gateway=192.168.60.1 routing-table=to_WAN2
add distance=2 gateway=192.168.50.1 routing-table=to_WAN2
add distance=1 gateway=192.168.50.1
add distance=2 gateway=192.168.60.1
 
User avatar
Peyoz
just joined
Posts: 3
Joined: Tue Jan 04, 2022 2:15 pm

Re: how to PCC in version 7?

Sun Jun 05, 2022 1:05 pm

Same issue here, 2 LTE WAN interfaces and whenever I'm adding a default route for the router itself, PCC stops working.
got it sorted out, now the router has access, PCC is working, also failover is fine
Sorry, but this solution does not work with LTE interfaces

Who is online

Users browsing this forum: No registered users and 18 guests