Load balance 3 links assimetricos

equiopamentos:

Rb 750, 3 modems net virtua , 3 roteadores tp-link

Modem-1 = 10M

modem-2 = 30M

modem-3 = 30M

configuração dos roteadores

roteador 1: 192.168.1.1/24

roteador 2: 10.0.0.1/24

roteador 3: 192.168.2.1/24

segue abaixo as regras

----------------------------------------------------------------------

/interface bridge
add name=loopback
/interface ethernet
set [ find default-name=ether1 ] comment=LINK-1 mtu=1480 name=ADSL1
set [ find default-name=ether3 ] comment=LINK-2 name=ADSL2
set [ find default-name=ether5 ] comment=LINK-3 name=ADSL3
set [ find default-name=ether4 ] disabled=yes name=Disable rx-flow-control=\
auto tx-flow-control=auto
set [ find default-name=ether2 ] name=LAN

/ip address
add address=10.77.77.1 interface=loopback network=10.77.77.1
add address=192.168.1.3/24 interface=ADSL1 network=192.168.1.0
add address=10.0.0.2/24 interface=ADSL2 network=10.0.0.0
add address=192.168.2.2/24 interface=ADSL3 network=192.168.2.0
add address=192.168.11.1/30 interface=LAN network=192.168.11.0


/ip firewall nat
add action=masquerade chain=srcnat out-interface=ADSL1
add action=masquerade chain=srcnat out-interface=ADSL2
add action=masquerade chain=srcnat out-interface=ADSL3

/ip firewall mangle
add chain=prerouting dst-address=192.168.1.0/24 in-interface=LAN
add chain=prerouting dst-address=10.0.0.0/24 in-interface=LAN
add chain=prerouting dst-address=192.168.2.0/24 in-interface=LAN
add action=mark-connection chain=prerouting connection-mark=no-mark \
in-interface=ADSL1 new-connection-mark=ADSL1_conn
add action=mark-connection chain=prerouting connection-mark=no-mark \
in-interface=ADSL2 new-connection-mark=ADSL2_conn
add action=mark-connection chain=prerouting connection-mark=no-mark \
in-interface=ADSL3 new-connection-mark=ADSL3_conn
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local in-interface=LAN new-connection-mark=ADSL1_conn \
per-connection-classifier=both-addresses:7/0
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local in-interface=LAN new-connection-mark=ADSL2_conn \
per-connection-classifier=both-addresses:7/1
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local in-interface=LAN new-connection-mark=ADSL2_conn \
per-connection-classifier=both-addresses:7/2
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local in-interface=LAN new-connection-mark=ADSL2_conn \
per-connection-classifier=both-addresses:7/3
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local in-interface=LAN new-connection-mark=ADSL3_conn \
per-connection-classifier=both-addresses:7/4
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local in-interface=LAN new-connection-mark=ADSL3_conn \
per-connection-classifier=both-addresses:7/6
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local in-interface=LAN new-connection-mark=ADSL3_conn \
per-connection-classifier=both-addresses:7/5
add action=mark-routing chain=prerouting connection-mark=ADSL1_conn \
in-interface=LAN new-routing-mark=to_ADSL1
add action=mark-routing chain=prerouting connection-mark=ADSL2_conn \
in-interface=LAN new-routing-mark=to_ADSL2
add action=mark-routing chain=prerouting connection-mark=ADSL3_conn \
in-interface=LAN new-routing-mark=to_ADSL3
add action=mark-routing chain=output connection-mark=ADSL1_conn \
new-routing-mark=to_ADSL1
add action=mark-routing chain=output connection-mark=ADSL2_conn \
new-routing-mark=to_ADSL2

/ip route
add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=to_ADSL1
add check-gateway=ping distance=1 gateway=10.0.0.1 routing-mark=to_ADSL2
add check-gateway=ping distance=1 gateway=192.168.2.1 routing-mark=to_ADSL3
add check-gateway=ping distance=1 gateway=192.168.1.1
add check-gateway=ping distance=2 gateway=10.0.0.1
add check-gateway=ping distance=3 gateway=192.168.2.1

Para adicionar comentários, você deve ser membro de MK-AUTH.

Join MK-AUTH

Enviar-me um email quando as pessoas responderem –

Respostas

  • Olá, amigo, esse tipo de ballance com 9 links, funciona bem vc liberando portas? Estou com um ballance de um cara da internet que fez, ele não usa mark conection, só usa mark routing, não sei se é por isso que tenho problemas de portas. Pode me ajudar com isso?

  • posso te ajudar sim posta aqui os ips dos seus modem ou pppoe e posta tmb o nome das interfaces que monto um script pra vc e nao esquece de colocar o modelo da rb

  • http://mk-auth.com.br/forum/topics/load-ballance-libera-o-de-portas...

    Olha ai em cima por favor.

    emerson alexandre de o. correa disse:

    posso te ajudar sim posta aqui os ips dos seus modem ou pppoe e posta tmb o nome das interfaces que monto um script pra vc e nao esquece de colocar o modelo da rb

  • me chama no skype amanha que te dou uma força 

    skype: emersoncascadura@hotmail.com

  • Amigos, boa tarde!

    Estou tendo problemas num balance com dois NET de 60Mb cada.
    Já fiz todos esses procedimentos, porém ainda continuo tendo problemas. Em alguns momentos a navegação para e volta logo em seguida. 

    Alexandre, nesse seu exemplo os modens da NET estão em bridge ou estão roteados?

    Obrigado desde já!

  • amigo de quantos é upload ai do seu NET?

    E OUTRA MODEM SEMPRE EM BRIDGE.

    Pedro Araujo do N Neto disse:

    Amigos, boa tarde!

    Estou tendo problemas num balance com dois NET de 60Mb cada.
    Já fiz todos esses procedimentos, porém ainda continuo tendo problemas. Em alguns momentos a navegação para e volta logo em seguida. 

    Alexandre, nesse seu exemplo os modens da NET estão em bridge ou estão roteados?

    Obrigado desde já!

This reply was deleted.