+ Responder ao Tópico



  1. #1

    Talking Como usar todo link no LB pcc

    Seguinte galera tow com probleminha no meu LB PCC

    tenho 4 Link adsl ...
    minha configuraçao tah a seguinte ......................................................

    EthLinkA - pppoe-out1
    EthLinkB - pppoe-out2
    EthLinkC - pppoe-out3
    EthLinkD - pppoe-out4

    modens em bridge .
    operadora telemar.com.br - link veloxzone

    queria usar todos link ao mesmo tempo -

    só quem tah trabalhando éo Link 1 EthLinkA - pppoe-out

    que ta errado ai

    agradeço desde já!

  2. #2

    Padrão Re: Como usar todo link no LB pcc

    Amigo provavelmente tem algo errado no ip>route ou no ip>mangle.

    Amigo leia com atençao e evite copiar e colar entenda o que está fazendo que você vai conseguir fazer o loadbalance funcionar.

    https://under-linux.org/f227/pcc-bal...r-m4d3-131343/

  3. #3

    Padrão Re: Como usar todo link no LB pcc

    Nao Consigo fazer o balanceador usar os 4 Links

    MAGLE
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=Local new-connection-mark=conn_ma0 passthrough=yes per-connection-classifier=both-addresses:4/0
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=Local new-connection-mark=conn_mb1 passthrough=yes per-connection-classifier=both-addresses:4/1
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=Local new-connection-mark=conn_mc2 passthrough=yes per-connection-classifier=both-addresses:4/2

    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=Local new-connection-mark=conn_mc3 passthrough=yes per-connection-classifier=both-addresses:4/3
    add action=mark-connection chain=input comment="" 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=no in-interface=EthLinkC new-connection-mark=conn_nc passthrough=yes

    add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=EthLinkD new-connection-mark=conn_nd passthrough=yes
    add action=mark-routing chain=output comment="" 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=no new-routing-mark=to_rc passthrough=no

    add action=mark-routing chain=output comment="" connection-mark=conn_nd disabled=no new-routing-mark=to_rd passthrough=no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_ma0 disabled=no in-interface=Local new-routing-mark=to_nra passthrough=no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_mb1 disabled=no in-interface=Local new-routing-mark=to_nrb passthrough=no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_mc2 disabled=no in-interface=Local new-routing-mark=to_nrc passthrough=no

    add action=mark-routing chain=prerouting comment="" connection-mark=conn_mc3 disabled=no in-interface=Local new-routing-mark=to_nrd passthrough=no

    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=EthLinkD 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

    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=EthLinkD routing-mark=to_nrd
    NAT
    add action=masquerade chain=srcnat comment="MASCARAMENTO PCC" disabled=no out-interface=EthLinkA
    add action=masquerade chain=srcnat comment="" disabled=no out-interface=EthLinkB
    add action=masquerade chain=srcnat comment="" disabled=no out-interface=EthLinkC

    add action=masquerade chain=srcnat comment="" disabled=no out-interface=EthLinkD

  4. #4

    Padrão Re: Como usar todo link no LB pcc

    Adiciona nois ai pra ver esse pcc em funcionamento, pra ver oque tá de errado ai!

    [email protected]