HELP for PCC LoadBalaning with 2 LAN !!!

Hello,

i am using PCC loadbalancing with 3 modems (MODEM1,4,5) and 1 LAN (ether13-GW_LAN), all work OK (code below)

Now i want to add a second LAN network, different from the first one, it will be in ether12.

How can i make it work with the 2 LAN networks together???

Thanks

/ip firewall mangle
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes
add action=mark-connection chain=input comment="Mark new inbound connection MODEM1" connection-state=new disabled=no in-interface=pppoe-MODEM1 \
    new-connection-mark=MODEM1 passthrough=yes
add action=mark-connection chain=input comment="Mark new inbound connection MODEM4" connection-state=new disabled=no in-interface=pppoe-MODEM4 \
    new-connection-mark=MODEM4 passthrough=yes
add action=mark-connection chain=input comment="Mark new inbound connection MODEM5" connection-state=new disabled=no in-interface=pppoe-MODEM5 \
    new-connection-mark=MODEM5 passthrough=yes
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes
add action=mark-connection chain=prerouting comment="Mark established inbound connection MODEM1" connection-state=established disabled=no in-interface=\
    pppoe-MODEM1 new-connection-mark=MODEM1 passthrough=yes
add action=mark-connection chain=prerouting comment="Mark established inbound connection MODEM4" connection-state=established disabled=no in-interface=\
    pppoe-MODEM4 new-connection-mark=MODEM4 passthrough=yes
add action=mark-connection chain=prerouting comment="Mark established inbound connection MODEM5" connection-state=established disabled=no in-interface=\
    pppoe-MODEM5 new-connection-mark=MODEM5 passthrough=yes
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes
add action=mark-connection chain=prerouting comment="Mark related inbound connection MODEM1" connection-state=related disabled=no in-interface=pppoe-MODEM1 \
    new-connection-mark=MODEM1 passthrough=yes
add action=mark-connection chain=prerouting comment="Mark related inbound connection MODEM4" connection-state=related disabled=no in-interface=pppoe-MODEM4 \
    new-connection-mark=MODEM4 passthrough=yes
add action=mark-connection chain=prerouting comment="Mark related inbound connection MODEM5" connection-state=related disabled=no in-interface=pppoe-MODEM5 \
    new-connection-mark=MODEM5 passthrough=yes
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes
add action=mark-routing chain=output comment="Mark new inbound route MODEM1" connection-mark=MODEM1 disabled=no new-routing-mark=static-MODEM1 passthrough=no
add action=mark-routing chain=output comment="Mark new inbound route MODEM4" connection-mark=MODEM4 disabled=no new-routing-mark=static-MODEM4 passthrough=no
add action=mark-routing chain=output comment="Mark new inbound route MODEM5" connection-mark=MODEM5 disabled=no new-routing-mark=static-MODEM5 passthrough=no
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes
add action=mark-connection chain=prerouting comment="Mark traffic that isn't local with PCC mark rand (3 possibilities) - option 1" connection-state=new \
    disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM1_pcc_conn passthrough=yes per-connection-classifier=\
    both-addresses:3/0
add action=mark-connection chain=prerouting comment="Mark traffic that isn't local with PCC mark rand (3 possibilities) - option 2" connection-state=new \
    disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM4_pcc_conn passthrough=yes per-connection-classifier=\
    both-addresses:3/1
add action=mark-connection chain=prerouting comment="Mark traffic that isn't local with PCC mark rand (3 possibilities) - option 3" connection-state=new \
    disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM5_pcc_conn passthrough=yes per-connection-classifier=\
    both-addresses:3/2
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes
add action=mark-connection chain=prerouting comment="Mark established traffic that isn't local with PCC mark rand (3 possibilities) - option 1" \
    connection-state=established disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM1_pcc_conn passthrough=yes \
    per-connection-classifier=both-addresses:3/0
add action=mark-connection chain=prerouting comment="Mark established traffic that isn't local with PCC mark rand (3 possibilities) - option 2" \
    connection-state=established disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM4_pcc_conn passthrough=yes \
    per-connection-classifier=both-addresses:3/1
add action=mark-connection chain=prerouting comment="Mark established traffic that isn't local with PCC mark rand (3 possibilities) - option 3" \
    connection-state=established disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM5_pcc_conn passthrough=yes \
    per-connection-classifier=both-addresses:3/2
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes
add action=mark-connection chain=prerouting comment="Mark related traffic that isn't local with PCC mark rand (3 possibilities) - option 1" connection-state=\
    related disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM1_pcc_conn passthrough=yes per-connection-classifier=\
    both-addresses:3/0
add action=mark-connection chain=prerouting comment="Mark related traffic that isn't local with PCC mark rand (3 possibilities) - option 2" connection-state=\
    related disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM4_pcc_conn passthrough=yes per-connection-classifier=\
    both-addresses:3/1
add action=mark-connection chain=prerouting comment="Mark related traffic that isn't local with PCC mark rand (3 possibilities) - option 3" connection-state=\
    related disabled=no dst-address-type=!local in-interface=ether13-GW_LAN new-connection-mark=MODEM5_pcc_conn passthrough=yes per-connection-classifier=\
    both-addresses:3/2
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes
add action=mark-routing chain=prerouting comment="Mark routing for  PCC mark - option 1" connection-mark=MODEM1_pcc_conn disabled=no new-routing-mark=MODEM1 \
    passthrough=yes
add action=mark-routing chain=prerouting comment="Mark routing for  PCC mark - option 2" connection-mark=MODEM4_pcc_conn disabled=no new-routing-mark=MODEM4 \
    passthrough=yes
add action=mark-routing chain=prerouting comment="Mark routing for  PCC mark - option 3" connection-mark=MODEM5_pcc_conn disabled=no new-routing-mark=MODEM5 \
    passthrough=yes
add action=accept chain=prerouting comment="--------------------------------------------------------------------------------------------------------------------\
    -------------------------------------------------------------------------------------------------------" disabled=yes

Now i want to add a second LAN network, different from the first one in ether12.

How can i make it work with the 2 LAN networks together???

The first one isn’t ether13-GW_LAN??

The lazy way, if you don’t mind both lans being in the same L2 segment would be bridging the two LANs then replacing ether13-GW_LAN in the rules with that bridge.

Lan1 is in ether13 and lan2 will be in ether12

I can not bridge them. Different ip, subnet, dhcp servers, hotspots.

Then you will have to replicate all your existing mangle/routing logic from LAN1, adding it to the setup with LAN2 parameters.

what you mean?

i want BOTH lan networks to work in Load Balancing.

i have to replicate all rules for the second lan? or some of them (per-connection-classifier)?

also the second one will use Hotspot but the first one NOT, what do i have to change?

Thanks…