Página 1 de 4 1234 ÚltimoÚltimo
+ Responder ao Tópico



  1. Boa tarde pessoal, hoje chegou uns equipamentos pra mim e um RB750 e preciso fazer um load balance, tentei com um programa para gerar mais só está saindo por 1link quando desligo o primeiro o segundo funciona, mais nada de funcionar os dois juntos... Alguém pode me dar uma mãozinha nisso? Segue minha configuração:
    # ip address --------------------------
    /ip address add address=10.50.0.1/24 interface=saida
    /ip address add address=192.168.1.100/24 interface=link
    /ip address add address=10.0.0.2/24 interface=adsl
    # interface pppoe-client ---------------
    # ip dns --------------------------------
    /ip dns set primary-dns=8.8.8.8
    /ip dns set secondary-dns=8.8.4.4
    /ip dns set allow-remote-requests=yes
    # ip firewall Filter------------------------
    /ip firewall filter add action=drop chain=forward comment="BLOQUEIO DE DNS REVERSO" content=velox.user.com.br disabled=no
    /ip firewall filter add action=drop chain=forward comment="BLOQUEIO DE DNS REVERSO" content=speed.user.com.br disabled=no
    /ip firewall filter add action=accept chain=input disabled=no in-interface=!link src-address=10.50.0.1/24
    /ip firewall filter add action=accept chain=input disabled=no in-interface=!adsl src-address=10.50.0.1/24
    # ip firewall nat--------------------------
    /ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=link
    /ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=adsl
    # ip firewall mangle------------------------
    # LoopBack por link-------------------------
    / ip firewall mangle add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no dst-address-list=LINK0 in-interface=saida new-connection-mark=Sites0 passthrough=yes
    / ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=Sites0 disabled=no in-interface=saida new-routing-mark=Rota0 passthrough=no
    / ip route add gateway=192.168.1.1 routing-mark=Rota0
    / ip firewall mangle add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no dst-address-list=LINK1 in-interface=saida new-connection-mark=Sites1 passthrough=yes
    / ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=Sites1 disabled=no in-interface=saida new-routing-mark=Rota1 passthrough=no
    / ip route add gateway=10.0.0.1 routing-mark=Rota1
    /ip firewall address-list add address=200.155.80.0-200.155.255.255 comment="BRADESCO" disabled=no list=LINK0
    /ip firewall address-list add address=200.220.186.0/24 comment="" disabled=no list=LINK0
    /ip firewall address-list add address=200.220.178.0/24 comment="" disabled=no list=LINK0
    /ip firewall address-list add address=201.7.176.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=201.7.178.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=208.67.217.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=208.69.32.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=64.38.29.0/24 comment="RapidShare" disabled=no list=LINK1
    # Fim LoopBack por link----------------------
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no in-interface=link new-connection-mark=link_conn passthrough=yes
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no in-interface=adsl new-connection-mark=adsl_conn passthrough=yes
    /ip firewall mangle add action=mark-routing chain=output connection-mark=link_conn disabled=no new-routing-mark=to_link passthrough=yes
    /ip firewall mangle add action=mark-routing chain=output connection-mark=adsl_conn disabled=no new-routing-mark=to_adsl passthrough=yes
    /ip firewall mangle add action=accept chain=prerouting disabled=no dst-address=192.168.1.0/24 in-interface=saida
    /ip firewall mangle add action=accept chain=prerouting disabled=no dst-address=10.0.0.0/24 in-interface=saida
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no dst-address-type=!local in-interface=saida new-connection-mark=link_conn passthrough=yes per-connection-classifier=:2/0
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no dst-address-type=!local in-interface=saida new-connection-mark=adsl_conn passthrough=yes per-connection-classifier=:2/1
    /ip firewall mangle add action=mark-routing chain=prerouting connection-mark=link_conn disabled=no in-interface=saida new-routing-mark=to_link passthrough=yes
    /ip firewall mangle add action=mark-routing chain=prerouting connection-mark=adsl_conn disabled=no in-interface=saida new-routing-mark=to_adsl passthrough=yes
    # ip route----------------------------------
    /ip route add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_link comment="Link0"
    /ip route add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.0.1 routing-mark=to_adsl comment="Link1"
    /ip route add check-gateway=ping comment="Link0" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=30 target-scope=10
    /ip route add check-gateway=ping comment="Link1" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=10.0.0.1 scope=30 target-scope=10
    Última edição por peritinaicos; 12-04-2011 às 21:12.

  2. Nunca usei uma RB como LB, nem sei te dizer também dizer sobre o desempenho, porem aqui uso o BFW, que tem todas as funções, e mais algumas tem interface web de fácil configuração onde você controla peso do link, tem o BIND entregado, tem algumas inúmeras vantagens fora à praticidade de se aumentar memoria e processador conforme necessidade, o único contra é o tamanho afinal é um PC.



  3. Citação Postado originalmente por peritinaicos Ver Post
    Boa tarde pessoal, hoje chegou uns equipamentos pra mim e um RB750 e preciso fazer um load balance, tentei com um programa para gerar mais só está saindo por 1link quando desligo o primeiro o segundo funciona, mais nada de funcionar os dois juntos... Alguém pode me dar uma mãozinha nisso? Segue minha configuração:
    # ip address --------------------------
    /ip address add address=10.50.0.1/24 interface=saida
    /ip address add address=192.168.1.100/24 interface=link
    /ip address add address=10.0.0.2/24 interface=adsl
    # interface pppoe-client ---------------
    # ip dns --------------------------------
    /ip dns set primary-dns=8.8.8.8
    /ip dns set secondary-dns=8.8.4.4
    /ip dns set allow-remote-requests=yes
    # ip firewall Filter------------------------
    /ip firewall filter add action=drop chain=forward comment="BLOQUEIO DE DNS REVERSO" content=velox.user.com.br disabled=no
    /ip firewall filter add action=drop chain=forward comment="BLOQUEIO DE DNS REVERSO" content=speed.user.com.br disabled=no
    /ip firewall filter add action=accept chain=input disabled=no in-interface=!link src-address=10.50.0.1/24
    /ip firewall filter add action=accept chain=input disabled=no in-interface=!adsl src-address=10.50.0.1/24
    # ip firewall nat--------------------------
    /ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=link
    /ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=adsl
    # ip firewall mangle------------------------
    # LoopBack por link-------------------------
    / ip firewall mangle add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no dst-address-list=LINK0 in-interface=saida new-connection-mark=Sites0 passthrough=yes
    / ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=Sites0 disabled=no in-interface=saida new-routing-mark=Rota0 passthrough=no
    / ip route add gateway=192.168.1.1 routing-mark=Rota0
    / ip firewall mangle add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no dst-address-list=LINK1 in-interface=saida new-connection-mark=Sites1 passthrough=yes
    / ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=Sites1 disabled=no in-interface=saida new-routing-mark=Rota1 passthrough=no
    / ip route add gateway=10.0.0.1 routing-mark=Rota1
    /ip firewall address-list add address=200.155.80.0-200.155.255.255 comment="BRADESCO" disabled=no list=LINK0
    /ip firewall address-list add address=200.220.186.0/24 comment="" disabled=no list=LINK0
    /ip firewall address-list add address=200.220.178.0/24 comment="" disabled=no list=LINK0
    /ip firewall address-list add address=201.7.176.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=201.7.178.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=208.67.217.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=208.69.32.0/24 comment="" disabled=no list=LINK1
    /ip firewall address-list add address=64.38.29.0/24 comment="RapidShare" disabled=no list=LINK1
    # Fim LoopBack por link----------------------
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no in-interface=link new-connection-mark=link_conn passthrough=yes
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no in-interface=adsl new-connection-mark=adsl_conn passthrough=yes
    /ip firewall mangle add action=mark-routing chain=output connection-mark=link_conn disabled=no new-routing-mark=to_link passthrough=yes
    /ip firewall mangle add action=mark-routing chain=output connection-mark=adsl_conn disabled=no new-routing-mark=to_adsl passthrough=yes
    /ip firewall mangle add action=accept chain=prerouting disabled=no dst-address=192.168.1.0/24 in-interface=saida
    /ip firewall mangle add action=accept chain=prerouting disabled=no dst-address=10.0.0.0/24 in-interface=saida
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no dst-address-type=!local in-interface=saida new-connection-mark=link_conn passthrough=yes per-connection-classifier=:2/0
    /ip firewall mangle add action=mark-connection connection-state=new chain=prerouting disabled=no dst-address-type=!local in-interface=saida new-connection-mark=adsl_conn passthrough=yes per-connection-classifier=:2/1

    /ip firewall mangle add action=mark-routing chain=prerouting connection-mark=link_conn disabled=no in-interface=saida new-routing-mark=to_link passthrough=yes
    /ip firewall mangle add action=mark-routing chain=prerouting connection-mark=adsl_conn disabled=no in-interface=saida new-routing-mark=to_adsl passthrough=yes
    # ip route----------------------------------
    /ip route add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_link comment="Link0"
    /ip route add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.0.1 routing-mark=to_adsl comment="Link1"
    /ip route add check-gateway=ping comment="Link0" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=30 target-scope=10
    /ip route add check-gateway=ping comment="Link1" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=10.0.0.1 scope=30 target-scope=10

    Amigao usei esse mesmo programa essa semana para balancear 1 dedicado de 4 megas e + 5 links adsl com velocidades diferentes!

    nao vou nem ler as configuraçoes que postou! tente configurar novamente pelo programa vc colocou alguma coisa errada na configuracao pois aonde destaquei la em cima deveriam exister 2 regras para link dedicado e 1 para adsl!

    pois essas regras usam uma coisa basica que aprendi essa semana
    soma o total do link ou seja no seu caso 6 megas divide pela quantidade de links no seu caso 2

    ou seja 3, ai teriam que ter 3 regras destas 3/0 link dedicado 3/1 link dedicado 3/2 adsl

    onde a primeira e segunda requisicoes vao pro link dedicado, e a 3 pro adsl!
    outra dica coloque seu modem em bridge!
    qualquer coisa me add no msn que te ajudo a configurar o programinha que funciona 100% cls7@ig.com.br

  4. Citação Postado originalmente por cls7007 Ver Post
    Amigao usei esse mesmo programa essa semana para balancear 1 dedicado de 4 megas e + 5 links adsl com velocidades diferentes!

    nao vou nem ler as configuraçoes que postou! tente configurar novamente pelo programa vc colocou alguma coisa errada na configuracao pois aonde destaquei la em cima deveriam exister 2 regras para link dedicado e 1 para adsl!

    pois essas regras usam uma coisa basica que aprendi essa semana
    soma o total do link ou seja no seu caso 6 megas divide pela quantidade de links no seu caso 2

    ou seja 3, ai teriam que ter 3 regras destas 3/0 link dedicado 3/1 link dedicado 3/2 adsl

    onde a primeira e segunda requisicoes vao pro link dedicado, e a 3 pro adsl!
    outra dica coloque seu modem em bridge!
    qualquer coisa me add no msn que te ajudo a configurar o programinha que funciona 100% cls7@ig.com.br
    Blz amigo, tentei algumas vezes, mais não consegui... Já add vc.



  5. Citação Postado originalmente por peritinaicos Ver Post
    Blz amigo, tentei algumas vezes, mais não consegui... Já add vc.
    nao apareceu no meu msn nao






Tópicos Similares

  1. Respostas: 16
    Último Post: 09-04-2015, 21:17
  2. Respostas: 10
    Último Post: 16-09-2013, 08:47
  3. Ajuda!!!Load balance + 2 links diferente na rb750 .
    Por Paulo José da Silva no fórum Redes
    Respostas: 2
    Último Post: 07-03-2013, 08:13
  4. Ajuda LOAD BALANCE 3 LINKS ADSL
    Por chnet no fórum Redes
    Respostas: 3
    Último Post: 07-05-2011, 18:45
  5. ajuda aki pra fazer um load balance 2 links adsl
    Por brunocabral no fórum Redes
    Respostas: 6
    Último Post: 16-07-2010, 21:02

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L