Página 1 de 3 123 ÚltimoÚltimo
+ Responder ao Tópico



  1. e o seguinte se vc tem 5 link e precisa dividilo da seguinte forma, este exemplo que vou colocar aqui e para o seguinte links
    2 de 1024/512 ADSL (10.2.1.1/24, 10.3.1.1/24)
    1 de 800/300 ADSL (10.4.1.1/24)
    1 de 600/150 ADSL (10.5.1.1/24)

    1 de 512/512 IP DEDICADO (200.89.72.33/27)
    e o seguinte eu faço o baleciamento com um controle de porta alta tipo assim pego o trafego de porta alta e jogo no link de 800/300 e o restante eu coloca por rota
    exemplo de como fazer este controle de por porta alta?

    add chain=prerouting dst-address=11.0.0.0-200.89.72.31 protocol=udp \
    dst-port=1024-65535 action=mark-routing new-routing-mark=UDP-1024-65535/1 \
    passthrough=yes comment="" disabled=no

    e o mais importa deste load balacend e o seguinte e quando um link ele redistribui para os outros que esta ativo

    / tool netwatch
    add host=201.10.209.185 timeout=1s interval=45s up-script=link-1M-3613-UP \
    down-script=link-1M-3613-DOWN comment="link-1M-3613" disabled=no
    add host=201.10.249.53 timeout=1s interval=40s up-script=link-1M-5581-UP \
    down-script=link-1M-5581-DOWN comment="link-1M-5581" disabled=no
    add host=200.160.2.3 timeout=1s interval=45s up-script=link-800-5314-UP \
    down-script=link-800-5314-DOWN comment="link-800-5314" disabled=no
    add host=201.10.209.189 timeout=1s interval=45s up-script=link-600-4876-UP \
    down-script=link-600-4876-DOWN comment="link-600-4876" disabled=no
    add host=201.10.249.57 timeout=1s interval=40s up-script=link-1M-5581-UP \
    down-script=link-1M-5581-DOWN comment="link-Dedicado" disabled=no


    / system script
    add name="link-800-5314-UP" source="/ip route set \[/ip route find \
    gateway=10.4.1.1\] disabled=no" policy=ftp,reboot,read,write,test,winbox
    add name="link-800-5314-DOWN" source="/ip route set \[/ip route find \
    gateway=10.4.1.1\] disabled=yes" policy=ftp,reboot,read,write,test,winbox
    add name="link-600-4876-UP" source="/ip route set \[/ip route find \
    gateway=10.5.1.1\] disabled=no" policy=ftp,reboot,read,write,test,winbox
    add name="link-600-4876-DOWN" source="/ip route set \[/ip route find \
    gateway=10.5.1.1\] disabled=yes" policy=ftp,reboot,read,write,test,winbox
    add name="link-1M-5581-UP" source="/ip route set \[/ip route find \
    gateway=10.2.1.1\] disabled=no" policy=ftp,reboot,read,write,test,winbox
    add name="link-1M-5581-DOWN" source="/ip route set \[/ip route find \
    gateway=10.2.1.1\] disabled=yes" policy=ftp,reboot,read,write,test,winbox
    add name="link-1M-3613-UP" source="/ip route set \[/ip route find \
    gateway=10.3.1.1\] disabled=no" policy=ftp,reboot,read,write,test,winbox
    add name="link-1M-3613-DOWN" source="/ip route set \[/ip route find \
    gateway=10.3.1.1\] disabled=yes" policy=ftp,reboot,read,write,test,winbox
    add name="link-Dedicado-UP" source="/ip route set \[/ip route find \
    gateway=201.89.72.33\] disabled=no" policy=ftp,reboot,read,write,test,winbox
    add name="link-Dedicado-DOWN" source="/ip route set \[/ip route find \
    gateway=201.89.72.33\] disabled=yes" policy=ftp,reboot,read,write,test,winbox

    e o ip router

    vc tbm coloca o seguinte codigo pra que o este script faça a checagem

    dd dst-address=200.160.2.3/32 gateway=10.4.1.1,10.4.1.1 scope=255 target-scope=10 comment="TESTE link-800-5314 N REMOVER" \
    disabled=no
    add dst-address=201.10.209.185/32 gateway=10.3.1.1,10.3.1.1 scope=255 target-scope=10 comment="TESTE link-1M-3613 N \
    REMOVER" disabled=no
    add dst-address=201.10.209.189/32 gateway=10.5.1.1,10.5.1.1 scope=255 target-scope=10 comment="TESTE link-600-4876 N \
    REMOVER" disabled=no
    add dst-address=201.10.249.53/32 gateway=10.2.1.1,10.2.1.1 scope=255 target-scope=10 comment="TESTE link-1M-5581 N \
    REMOVER" disabled=no
    add dst-address=201.15.2.5/32 gateway=201.89.72.33,201.89.72.33 scope=255 target-scope=10 comment="TESTE IP-Dedicado N \
    REMOVER" disabled=no


    o o restante do ip router e a sim


    / ip route
    add dst-address=12.0.0.0/6 gateway=10.3.1.1 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=32.0.0.0/3 gateway=10.5.1.1 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=64.0.0.0/8 gateway=201.89.72.33 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=65.0.0.0/8 gateway=201.89.72.33 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=72.0.0.0/8 gateway=201.89.72.33 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=64.0.0.0/2 gateway=10.3.1.1 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=128.0.0.0/3 gateway=10.5.1.1 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=201.15.110.85/32 gateway=201.89.72.33 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=207.0.0.0/8 gateway=201.89.72.33 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=208.0.0.0/4 gateway=10.3.1.1 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=192.0.0.0/3 gateway=10.3.1.1 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=224.0.0.0/3 gateway=10.3.1.1 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=UDP-111-1023/2 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=TCP-5910-65535/1 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=TCP-111-1862/1 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=UDP-1024-65535/1 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=TCP-1864-1998/1 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.2.1.1 distance=5 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.3.1.1 distance=4 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.5.1.1 distance=6 scope=255 target-scope=10 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=TCP-111-1862/2 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=TCP-1864-1998/2 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=UDP-1024-65535/2 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=UDP-111-1023/1 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=TCP-2000-5899/1 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=TCP-2000-5899/2 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.4.1.1 scope=255 target-scope=10 routing-mark=TCP-5910-65535/2 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.2.1.1 scope=255 target-scope=10 routing-mark=TCP-0-110/200 comment="" disabled=no
    add dst-address=0.0.0.0/0 gateway=10.2.1.1 scope=255 target-scope=10 routing-mark=TCP-0-110/201 comment="" disabled=no

  2. e esta aqui tbm e o mangle


    add chain=prerouting dst-address=200.0.0.0/8 protocol=tcp dst-port=0-110 action=mark-routing \
    new-routing-mark=TCP-0-110/200 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=201.0.0.0/8 protocol=tcp dst-port=0-110 action=mark-routing \
    new-routing-mark=TCP-0-110/201 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=11.0.0.0-201.89.72.31 protocol=tcp dst-port=111-1862 action=mark-routing \
    new-routing-mark=TCP-111-1862/1 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=11.0.0.0-201.89.72.31 protocol=tcp dst-port=1864-1998 action=mark-routing \
    new-routing-mark=TCP-1864-1998/1 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=11.0.0.0-201.89.72.31 protocol=tcp dst-port=2000-5899 action=mark-routing \
    new-routing-mark=TCP-2000-5899/1 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=11.0.0.0-201.89.72.31 protocol=tcp dst-port=5910-65535 action=mark-routing \
    new-routing-mark=TCP-5910-65535/1 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=201.89.72.64-255.255.255.254 protocol=tcp dst-port=111-1862 action=mark-routing \
    new-routing-mark=TCP-111-1862/2 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=201.89.72.64-255.255.255.254 protocol=tcp dst-port=1864-1998 action=mark-routing \
    new-routing-mark=TCP-1864-1998/2 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=201.89.72.64-255.255.255.254 protocol=tcp dst-port=2000-5899 action=mark-routing \
    new-routing-mark=TCP-2000-5899/2 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=201.89.72.64-255.255.255.254 protocol=tcp dst-port=5910-65535 action=mark-routing \
    new-routing-mark=TCP-5910-65535/2 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=11.0.0.0-201.89.72.31 protocol=udp dst-port=111-1023 action=mark-routing \
    new-routing-mark=UDP-111-1023/1 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=11.0.0.0-201.89.72.31 protocol=udp dst-port=1024-65535 action=mark-routing \
    new-routing-mark=UDP-1024-65535/1 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=201.89.72.64-255.255.255.254 protocol=udp dst-port=1024-65535 action=mark-routing \
    new-routing-mark=UDP-1024-65535/2 passthrough=yes comment="" disabled=no
    add chain=prerouting dst-address=201.89.72.64-255.255.255.254 protocol=udp dst-port=111-1023 action=mark-routing \
    new-routing-mark=UDP-111-1023/2 passthrough=yes comment="" disabled=no


    agora se vc não fizer um load balacend decente ai pode para.


    Olha amigo isto aqui eu aprendi vendo algunas configurações em outros amigos e grande parte foi ideia minha acho que tem muitos aqui do forum que tem ideias boas mais não compartilhão por egoismo e tbm por olha grande de querer explorar as pessoas, então vamos compartilha as ideias e crescer na vida.



  3. Parabens pela iniciativa brother, é de pessoas assim que precisamos!!!
    mais uma vez, meus parabens!!!

  4. Parabéns brother, atitude louvável, ai vai um Thanks pra ti!



  5. Que maravilha se todos fossem assim seria otimo. muito bom mesmo gafanhoto meus parabens seja sempre assim






Tópicos Similares

  1. Vamos fazer barulho para GVT não ir para telefonica.
    Por RobertoLima no fórum Assuntos não relacionados
    Respostas: 27
    Último Post: 29-08-2011, 14:29
  2. Ajudem a Fazer um Load Balance de 5 links
    Por isacloko no fórum Redes
    Respostas: 5
    Último Post: 29-12-2008, 08:28
  3. Pessoal, vamos ajudar o Joomla!
    Por bialinhares no fórum Servidores de Rede
    Respostas: 0
    Último Post: 07-11-2008, 09:46
  4. ai pessoal vamos construir antenas
    Por rfpowere no fórum Redes
    Respostas: 3
    Último Post: 02-11-2007, 22:49
  5. VAMOS FAZER UM LIVE CD DO UNDERLINUX ??
    Por betagoro no fórum Servidores de Rede
    Respostas: 4
    Último Post: 27-01-2006, 12:47

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L