Balanceo de Carga 3 pppoe-out

Publicado en 'Redes e Internet' por pelinho, 4 Abr 2011.





  1. pelinho

    pelinho Miembro nuevo

    Registro:
    19 Abr 2010
    Mensajes:
    11
    Likes:
    0




    Estimados, tengo esta configuracion de 3 adsl pppoe-out, lo quiero implementar en mi red, y les agradeceria sus opinienones que les parece, si es factible o tiene algo que modificar o aumentar, si esta bien el Failover, gracias.
    He visto muchos codigos de balanceo PCC , pero todos pedian ip fija y no los entendia bien, espero sus respuestas.........

    Código:
     
    / ip firewall mangle
    add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-mark=wan1_conn
    add chain=input in-interface=pppoe-out2 action=mark-connection new-connection-mark=wan2_conn
    add chain=input in-interface=pppoe-out3 action=mark-connection new-connection-mark=wan3_conn
    add chain=output connection-mark=no-mark per-connection-classifier=both-addresses:3/0 \
    action=mark-connection new-connection-mark=wan1_conn passthrough=yes
    add chain=output connection-mark=no-mark per-connection-classifier=both-addresses:3/1 \
    action=mark-connection new-connection-mark=wan2_conn passthrough=yes
    add chain=output connection-mark=no-mark per-connection-classifier=both-addresses:3/2 \
    action=mark-connection new-connection-mark=wan3_conn passthrough=yes
    add chain=output connection-mark=wan1_conn action=mark-routing new-routing-mark=to_wan1
    add chain=output connection-mark=wan2_conn action=mark-routing new-routing-mark=to_wan2
    add chain=output connection-mark=wan3_conn action=mark-routing new-routing-mark=to_wan3
     
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:3/0 \
    action=mark-connection new-connection-mark=wan1_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:3/1 \
    action=mark-connection new-connection-mark=wan2_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:3/2 \
    action=mark-connection new-connection-mark=wan3_conn passthrough=yes
    add chain=prerouting connection-mark=wan1_conn in-interface=Local action=mark-routing new-routing-mark=to_wan1
    add chain=prerouting connection-mark=wan2_conn in-interface=Local action=mark-routing new-routing-mark=to_wan2
    add chain=prerouting connection-mark=wan3_conn in-interface=Local action=mark-routing new-routing-mark=to_wan3
    / ip route
    add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_wan2 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=pppoe-out3 routing-mark=to_wan3 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=pppoe-out3 distance=3 check-gateway=ping
    / ip firewall nat
    add chain=srcnat out-interface=pppoe-out1 action=masquerade
    add chain=srcnat out-interface=pppoe-out2 action=masquerade
    add chain=srcnat out-interface=pppoe-out3 action=masquerade