[QUOTE = tskstar; 430775] Consegue vir antes e postar para vocês ....
Segue código base para balanceamento utilizando com PCC 2 ADSLs da mesma ponte em Operadora
Lembrem de Desmarcar a opção "adicionar rota padrão" Nas propriedades do pppoe-out
Sistema utilizado: Mikrotik 3,28 X86
Interfaces: Local (clientes pppoe-server)
pppoe-OUT1 (ADSL1)
pppoe-OUT2 (ADSL2)
Mangle
[CODE] / ip firewall mangle
add action = aceitar chain = prerouting comment = "FORA DO LOADBALACED" disabled = no dst-address-list = loopback in-interface = Local
add action = mark-connection chain = input comment = "Criar o pacote sai pela interface mesmo" connection-state = new disabled = no in-interface = pppoe-wan1 \
ligação nova marca de wan1_conn = passthrough = yes
add action = mark-connection chain = input comment = "" connection-state = new disabled = no in-interface = pppoe-WAN2 nova-connection-mark = wan2_conn passthrough = yes
add action = mark-routing chain = output comment = "" connection-mark = ligação wan1_conn-state = new disabled = no new-routing-mark = to_wan1 passthrough = no
add action = mark-routing chain = output comment = "" connection-mark = ligação wan2_conn-state = new disabled = no new-routing-mark = to_wan2 passthrough = no
add action = aceitar chain = prerouting comment = "Atribuir o encaminhamento adequado da marca" disabled = yes dst-address = 10.111.0.0/24 in-interface = Local
add action = aceitar chain = prerouting comment = "" disabled = yes dst-address = 10.112.0.0/24 in-interface = Local
add action = mark-connection chain = prerouting comment = "PCC Balance" disabled = no dst-address-type =! local in-interface = Local new-connection-mark = wan1_conn \
passthrough = no per-connection-classifier = dois endereços: 2 / 0
add action = mark-connection chain = prerouting comment = "" disabled = no dst-address-type =! local in-interface = Local new-connection-mark = wan2_conn passthrough = yes \
per-connection-classifier = dois endereços: 2 / 1
add action = mark-routing chain = prerouting comment = "Marcar todos os pacotes" connection-mark = wan1_conn disabled = no in-interface = Local new-routing-mark = to_wan1 \
passthrough = no
add action = mark-routing chain = prerouting comment = "" connection-mark = wan2_conn disabled = no in-interface = Local new-routing-mark = to_wan2 passthrough = no
[/ CODE]
NAT
[CODE] / ip firewall nat
add action = masquerade chain = srcnat comment = "Masquerade Interfaces" disabled = no out-interface = pppoe-wan1
add action = masquerade chain = srcnat comment = "" disabled = no out-interface = pppoe-WAN2
[/ CODE]
ROTAS
[CODE] ip route /
add comment = "" disabled = no distance = 1 dst-address = 0.0.0.0 / 0 gateway = Local
add check-gateway = ping comment = "" disabled = no distance = 1 dst-address = 0.0.0.0 / 0 gateway = wan1-routing-mark = pppoe to_wan1
add check-gateway = ping comment = "" disabled = no distance = 2 dst-address = 0.0.0.0 / 0 gateway = WAN2-pppoe
add check-gateway = ping comment = "" disabled = no distance = 1 dst-address = 0.0.0.0 / 0 gateway = WAN2-routing-mark = pppoe to_wan2
add check-gateway = ping comment = "" disabled = no distance = 1 dst-address = 0.0.0.0 / 0 gateway = wan1-pppoe
[/ CODE]
Espero que isso ajude ...
Abração a todos! Precisando tamo ai! [/ QUOTE]
Bom dia... ótimo exemplo está de parabéns.. porém tem duas duvidas já que vou implementar esse passo a passo hj.
Quando vc disse isso logo no inicio " Interfaces: Local (clientes pppoe-server)"
Eu trabalho em uma rede totamente cabeada eu preciso ter um ppoe-server instalado ? caso sim, como o faria ?
outra coisa, essas regras abaixo são para ficar com disable=yes, mesmo ?
add action = aceitar chain = prerouting comment = "Atribuir o encaminhamento adequado da marca" disabled = yes dst-address = 10.111.0.0/24 in-interface = Local
add action = aceitar chain = prerouting comment = "" disabled = yes dst-address = 10.112.0.0/24 in-interface = Local
antecipadamente agradeço,
Carlos Gonzaga