PCC Balance de 3 a 16 links - Por: M4D3
	
	
		Muito bom !! porém estou com um problema.. fiz a configuração prevendo tres modems adsls em  bridge, sendo que as conexoes ppp conectam sendo que somente  1º que conecta ficar com atividade tx e rx na interface ppoe-cliente vou passar minha configuração.. ve se mata a charada !!
 
Caso desative uma a outra entra... sendo que preciso o fazer o loadbalance !!
 
MANGLE
add action=accept chain=prerouting comment="SEM BALANCEAMENTO" disabled=no \
    dst-address-list=sem_balance
add action=mark-connection chain=input comment="Marca\E7\E3o das  conex\F5es" \
    connection-state=new disabled=no in-interface=EthLinkA \
    new-connection-mark=conn_na passthrough=yes
add action=mark-connection chain=input comment="" connection-state=new \
    disabled=no in-interface=EthLinkB new-connection-mark=conn_nb \
    passthrough=yes
add action=mark-connection chain=input comment="" connection-state=new \
    disabled=yes in-interface=EthLinkC new-connection-mark=conn_nc \
    passthrough=yes
add action=mark-routing chain=output comment="Marca\E7\E3o das Rotas" \
    connection-mark=conn_na disabled=no new-routing-mark=to_ra passthrough=no
add action=mark-routing chain=output comment="" connection-mark=conn_nb \
    disabled=no new-routing-mark=to_rb passthrough=no
add action=mark-routing chain=output comment="" connection-mark=conn_nc \
    disabled=yes new-routing-mark=to_rc passthrough=no
add action=mark-connection chain=prerouting comment="Balancemento dos links" \
    disabled=no dst-address-type=!local in-interface=EthCliente \
    new-connection-mark=conn_ma0 passthrough=no per-connection-classifier=\
    both-addresses:2/0
add action=mark-connection chain=prerouting comment="" disabled=no \
    dst-address-type=!local in-interface=EthCliente new-connection-mark=\
    conn_mb1 passthrough=no per-connection-classifier=both-addresses:2/1
add action=mark-connection chain=prerouting comment="" disabled=yes \
    dst-address-type=!local in-interface=EthCliente new-connection-mark=\
    conn_mc2 passthrough=no per-connection-classifier=both-addresses:3/2
NAT
add action=masquerade chain=srcnat comment="MASCARAMENTO PCC" disabled=no src-address=192.168.0.0/24
 
ROTA
 
add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=EthLinkA scope=30 target-scope=10
add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=EthLinkB scope=30 target-scope=10
add comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=EthLinkC scope=30 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkA routing-mark=to_nra
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkB routing-mark=to_nrb
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkC routing-mark=to_nrc
 
 
Antecipadamente agradeço,
 
Carlos Gonzaga
	 
	
	
	
		PCC Balance de 3 a 16 links - Por: M4D3
	
	
		Olá.. consegui resolver o meu problema vou te passar como esta a minha configuração :
Lembrando que esto com dois links adsl velox 1 4mb e 1 2mb... Boa sorte !!
/interface ethernet
set 0 arp=enabled auto-negotiation=yes cable-settings=default comment=\
    "####### INTERFACE LINK4MB ####" disable-running-check=yes disabled=no \
    full-duplex=yes mac-address=00:E0:4C:63:F6:A9 mtu=1500 name=EthLinkA \
    speed=100Mbps
set 1 arp=enabled auto-negotiation=yes cable-settings=default comment="" \
    disable-running-check=yes disabled=no full-duplex=yes mac-address=\
    00:E0:4C:77:18:A3 mtu=1500 name=EthLinkB speed=100Mbps
set 2 arp=enabled auto-negotiation=yes cable-settings=default comment=\
    "####### INTERFACE CLIENTES ####" disable-running-check=yes disabled=no \
    full-duplex=yes mac-address=00:E0:4C:63:F7:2E mtu=1500 name=EthClientes \
    speed=100Mbps
set 3 arp=enabled auto-negotiation=yes cable-settings=default comment="" \
    disable-running-check=yes disabled=no full-duplex=yes l2mtu=1600 \
    mac-address=00:16:17:69:34:2C mtu=1500 name=ether4 speed=100Mbps
/interface pppoe-client
add ac-name="" add-default-route=yes allow=pap,chap,mschap1,mschap2 comment=\
    "" dial-on-demand=no disabled=no interface=EthLinkA max-mru=1480 max-mtu=\
    1480 mrru=disabled name=DISCADOR_4MB password=2122539500 profile=default \
    service-name="" use-peer-dns=yes [email protected]
add ac-name="" add-default-route=yes allow=pap,chap,mschap1,mschap2 comment=\
    "" dial-on-demand=no disabled=no interface=EthLinkB max-mru=1480 max-mtu=\
    1480 mrru=disabled name=DISCADOR_2MB password=2122539500 profile=default \
    service-name="" use-peer-dns=yes [email protected]
/ip address
add address=10.1.10.130/27 broadcast=10.1.10.159 comment=\
    "###### INTERFACE LINK 4MB ###" disabled=no interface=EthLinkA network=\
    10.1.10.128
add address=192.168.1.1/30 broadcast=192.168.1.3 comment=\
    "###### INTERFACE CLIENTE ###" disabled=no interface=EthClientes network=\
    192.168.1.0
add address=10.1.10.162/27 broadcast=10.1.10.191 comment=\
    "###### INTERFACE LINK 2MB ###" disabled=no interface=EthLinkB network=\
    10.1.10.160
/ip firewall mangle
add action=accept chain=prerouting comment="Fora do LoadBalanced" disabled=no \
    dst-address-list=loopback in-interface=EthClientes
add action=mark-connection chain=input comment=\
    "Marcar conexao ether1_conn ether2_conn " connection-state=new disabled=\
    no in-interface=EthLinkA new-connection-mark=ether1_conn passthrough=yes
add action=mark-connection chain=input comment="" connection-state=new \
    disabled=no in-interface=EthLinkB new-connection-mark=ether2_conn \
    passthrough=yes
add action=mark-routing chain=output comment=\
    "Marca\E7\E3o to_ether1 to_ether2" connection-mark=ether1_conn \
    connection-state=new disabled=no new-routing-mark=to_ether1 passthrough=\
    no
add action=mark-routing chain=output comment="" connection-mark=ether2_conn \
    connection-state=new disabled=no new-routing-mark=to_ether2 passthrough=\
    no
add action=mark-connection chain=prerouting comment=LoadBalance disabled=no \
    dst-address-type=!local in-interface=EthClientes new-connection-mark=\
    ether1_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:6/0
add action=mark-connection chain=prerouting comment=ether2_conn disabled=no \
    dst-address-type=!local in-interface=EthClientes new-connection-mark=\
    ether1_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:6/1
add action=mark-connection chain=prerouting comment=ether4_conn disabled=no \
    dst-address-type=!local in-interface=EthClientes new-connection-mark=\
    ether1_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:6/2
add action=mark-connection chain=prerouting comment=ether5_conn disabled=no \
    dst-address-type=!local in-interface=EthClientes new-connection-mark=\
    ether1_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:6/3
add action=mark-connection chain=prerouting comment=ether6_conn disabled=no \
    dst-address-type=!local in-interface=EthClientes new-connection-mark=\
    ether2_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:6/4
add action=mark-connection chain=prerouting comment=ether7_conn disabled=no \
    dst-address-type=!local in-interface=EthClientes new-connection-mark=\
    ether2_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:6/5
add action=mark-routing chain=prerouting comment=\
    "Rota dos pacores to_ether1 e to_ether2" connection-mark=ether1_conn \
    disabled=no in-interface=EthClientes new-routing-mark=to_ether1 \
    passthrough=no
add action=mark-routing chain=prerouting comment="" connection-mark=\
    ether2_conn disabled=no in-interface=EthClientes new-routing-mark=\
    to_ether2 passthrough=no
	 
	
	
	
		PCC Balance de 3 a 16 links - Por: M4D3
	
	
		tranquilo !!
 
Sob o balanceamento ta funcionando muito bem !!