Página 2 de 10 PrimeiroPrimeiro 1234567 ... ÚltimoÚltimo
+ Responder ao Tópico



  1. Citação Postado originalmente por sostenes Ver Post
    ola amigo,seus modens estao na mesma rage de ips,o correto seria link 1 192.168.1.1,link 2 192.168.2.1.
    Fiz desta forma
    link 1:192.168.1.1 8mb
    link 2:192.168.2.1 1mb
    Local:10.1.1.1

    Citação Postado originalmente por Geeek Ver Post
    vc esqueceu dos DNS amigo:
    Código :
    /ip dns
    set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 servers=8.8.8.8,8.8.4.4
    Coloquei este DNS ele e do google né o meu aki é 201.10.128.3/201.10.120.3 da Brt mais esse funciona tbm eu creio que quase todo mundo usa ele...
    e nem assim ainda funcionou meu scrip fico assim agora:

    / ip address
    add address=10.1.1.254/24 network=10.1.1.0 broadcast=10.1.1.255 interface=Local
    add address=192.168.1.254/24 network=192.168.1.0 broadcast=192.168.1.255 interface=ether1
    add address=192.168.2.254/24 network=192.168.2.0 broadcast=192.168.2.255 interface=ether2
    / ip firewall mangle
    add chain=input in-interface=ether1 action=mark-connection new-connection-mark=ether1_conn
    add chain=input in-interface=ether2 action=mark-connection new-connection-mark=ether2_conn
    add chain=output connection-mark=ether1_conn action=mark-routing new-routing-mark=to_ether1
    add chain=output connection-mark=ether2_conn action=mark-routing new-routing-mark=to_ether2
    add chain=prerouting dst-address=192.168.1.1/24 action=accept in-interface=Local
    add chain=prerouting dst-address=192.168.2.1/24 action=accept in-interface=Local
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0 \
    action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1 \
    action=mark-connection new-connection-mark=ether2_conn passthrough=yes
    add chain=prerouting connection-mark=ether1_conn in-interface=Local action=mark-routing new-routing-mark=to_ether1
    add chain=prerouting connection-mark=ether2_conn in-interface=Local action=mark-routing new-routing-mark=to_ether2

    / ip route
    add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_ether1 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_ether2 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping

    / ip firewall nat
    add chain=srcnat out-interface=ether1 action=masquerade
    add chain=srcnat out-interface=ether2 action=masquerade


    /ip dns
    set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 servers=8.8.8.8,8.8.4.4
    fico grato pela ajuda de vez e gostaria que vcs me auxiliacem neste problema... sou novo com MK!
    e agradeço os feras nessa área...
    dede já muito grato..
    Última edição por claudinhohw; 25-08-2010 às 09:45.

  2. seta os modens com range de ip diferente o mude sua netmask.
    vc colocou num no 192.168.1.1 o broadcast .254...... e no 192.168.1.254 vc colocou o broadcast .1.1 .... muda isso...
    192.168.1.0/30 netmask 255.255.255.252 gateway 192.168.1.1 eth 192.168.1.2
    192.168.1.252/30 netmask 255.255.255.252 gateway 192.168.1.254 eth 192.168.1.253

    ou se quizer deixar a netmask /24
    192.168.1.1
    192.168.2.1

    nao esqueça dos DNS



  3. Citação Postado originalmente por gbovelar Ver Post
    seta os modens com range de ip diferente o mude sua netmask.
    vc colocou num no 192.168.1.1 o broadcast .254...... e no 192.168.1.254 vc colocou o broadcast .1.1 .... muda isso...
    192.168.1.0/30 netmask 255.255.255.252 gateway 192.168.1.1 eth 192.168.1.2
    192.168.1.252/30 netmask 255.255.255.252 gateway 192.168.1.254 eth 192.168.1.253

    ou se quizer deixar a netmask /24
    192.168.1.1
    192.168.2.1

    nao esqueça dos DNS
    amigo segui suas dicas tbm não tive êxito nem um ainda, mesmo assim obrigado pra mim serviria o load balance Failover, pois tenho 2 links link1 8mb link2 1mb quando o de 8mb cair o de 1mb entra só pra nao ficar sem msm... segue a configuração de como fico agora...

    / ip address
    add address=10.1.1.254/24 network=10.1.1.0 broadcast=10.1.1.1 interface=Local
    add address=192.168.1.254/30 network=192.168.1.0 broadcast=192.168.1.1 interface=ether1
    add address=192.168.2.254/30 network=192.168.2.0 broadcast=192.168.2.1 interface=ether2
    / ip firewall mangle
    add chain=input in-interface=ether1 action=mark-connection new-connection-mark=ether1_conn
    add chain=input in-interface=ether2 action=mark-connection new-connection-mark=ether2_conn
    add chain=output connection-mark=ether1_conn action=mark-routing new-routing-mark=to_ether1
    add chain=output connection-mark=ether2_conn action=mark-routing new-routing-mark=to_ether2
    add chain=prerouting dst-address=192.168.1.1/30 action=accept in-interface=Local
    add chain=prerouting dst-address=192.168.2.1/30 action=accept in-interface=Local
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0 \
    action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1 \
    action=mark-connection new-connection-mark=ether2_conn passthrough=yes
    add chain=prerouting connection-mark=ether1_conn in-interface=Local action=mark-routing new-routing-mark=to_ether1
    add chain=prerouting connection-mark=ether2_conn in-interface=Local action=mark-routing new-routing-mark=to_ether2

    / ip route
    add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_ether1 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_ether2 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping

    / ip firewall nat
    add chain=srcnat out-interface=ether1 action=masquerade
    add chain=srcnat out-interface=ether2 action=masquerade


    /ip dns
    set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 servers=201.10.128.3,201.10.120.3

  4. bom amigo,essas conf que vc esta usando estao erradas,primeiro te aconselho a usar modens em bridge vc tera um desempenho melhor em seu lb,segundo as marcações de peso no mangle estao erradas pois se vc tem um link de 8M e um de 1M tem que a ver 8 marcações pro link de 8M ,e 1 pro link de 1M.

    tenho um tutorial meu que funciona perfeita mente e so vc adaptar as suas necessidades,te aconselho a resetar seu lb e começar do zero, crie os discadores pppoe e desmarque as opções de add default router e use peer DNS, crie nat para as interfaces pppoe, e nao confunda com nat para interface eth, depois siga o típico:

    https://under-linux.org/f227/load-ba...ilover-139132/

    Eliminando as configurações para o Link3 e em pcc possibilidades use essas marcações:

    Código :
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/0
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/1
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/2
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/3
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/4
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/5
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/6
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/7
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link2" disabled=no dst-address-type=!local in-interface= new-connection-mark=link2adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/8

    boa sorte.



  5. Citação Postado originalmente por sostenes Ver Post
    bom amigo,essas conf que vc esta usando estao erradas,primeiro te aconselho a usar modens em bridge vc tera um desempenho melhor em seu lb,segundo as marcações de peso no mangle estao erradas pois se vc tem um link de 8M e um de 1M tem que a ver 8 marcações pro link de 8M ,e 1 pro link de 1M.

    tenho um tutorial meu que funciona perfeita mente e so vc adaptar as suas necessidades,te aconselho a resetar seu lb e começar do zero, crie os discadores pppoe e desmarque as opções de add default router e use peer DNS, crie nat para as interfaces pppoe, e nao confunda com nat para interface eth, depois siga o típico:

    https://under-linux.org/f227/load-ba...ilover-139132/

    Eliminando as configurações para o Link3 e em pcc possibilidades use essas marcações:

    Código :
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/0
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/1
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/2
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/3
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/4
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/5
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/6
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link1" disabled=no dst-address-type=!local in-interface= new-connection-mark=link1adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/7
    /ip firewall mangle add action=mark-connection chain=prerouting comment="Link2" disabled=no dst-address-type=!local in-interface= new-connection-mark=link2adsl_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:9/8

    boa sorte.
    muito obrigado amigo pelas dica mais não intendi muito bem sou novo com mk só a 4meses que estou estudando esse software... mais vou ver se consigo fazer e que não sei enterpretar muito bem esses scripts como o seu que vc me sugeril no link vou continuar tentando... vou fazer o reset e começar do zero... depois posto o resultado...






Tópicos Similares

  1. Respostas: 35
    Último Post: 01-07-2016, 12:22
  2. balanceamento de 2 links adsl com modem em bridge
    Por eudesamarelo no fórum Redes
    Respostas: 6
    Último Post: 02-05-2013, 16:04
  3. Respostas: 7
    Último Post: 16-09-2012, 17:31
  4. Respostas: 0
    Último Post: 25-01-2011, 18:10
  5. Respostas: 11
    Último Post: 07-04-2010, 20:36

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L