Load Balance Mikrotik with PCC using PPPoe-Client connection

Posted by Admin Monday, July 19, 2010 4 comments
Load Balance Mikrotik with PCC using PPPoe-Client connection - Mikrotik tutorial Load Balance Mikrotik with PCC using PPPoe-Client connection is used for bandwitdh optimalization,fail over, and bandwidth control usage.

First, make new mangle for mark connectio, packet and routing :

/ ip firewall mangle
add chain=input in-interface=internet1 action=mark-connection new-connection-mark=internet1_conn
add chain=input in-interface=internet2 action=mark-connection new-connection-mark=internet2_conn
add chain=output connection-mark=internet1_conn action=mark-routing new-routing-mark=to_internet1
add chain=output connection-mark=internet2_conn action=mark-routing new-routing-mark=to_internet2
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0 \
action=mark-connection new-connection-mark=internet1_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=internet2_conn passthrough=yes
add chain=prerouting connection-mark=internet1_conn in-interface=Local action=mark-routing new-routing-mark=to_internet1
add chain=prerouting connection-mark=internet2_conn in-interface=Local action=mark-routing new-routing-mark=to_internet2

Than set the default route and fail over gateway :
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_internet1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_internet2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.111.0.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 distance=2 check-gateway=ping

Last, set the NAT for local connection:
/ ip firewall nat
add chain=srcnat out-interface=internet1 action=masquerade
add chain=srcnat out-interface=internet2 action=masquerade

That is simple script for Load Balance Mikrotik with PCC using PPPoe-Client connection.

4 comments:

vinicius said...

Opa! Boa noite galera! Gostaria de uma ajuda... andei pesquisando e não achei algo muito claro na internet.... Eu quero realizar aqui em casa o sistema de failover em meu MK, porém, possui 2 provedores de acesso a internet, ambos utilizam o sistema de autenticação PPPoE. Então, atualmente tenho 2 router sem fio, um para cada, e comuto a conexão trocado o gateway na placa de rede manualmente. O que penso em fazer, comprei um MK, quero colocar 2 interfaces do MK discando as contas PPP, até pra mim tudo certo, mas agora, como fazer o failover?! Todos que vi na internet, não utilizam o PPP, e sim IP estático. Tem como realizar via PPPoE? Quero elimar os 2 router e manter somente o MK. Abraços a todos e desde já agradeço!

1 jhelum Boi said...

seems OK, but you havent well defined a few things.

No.1 are Internet1 and Internet2, Interfaces or PPPoE links ?
No.2 are these IPS 10.xxx.xx.x and other one... Bridge IPS or where do they came from ?

Waiting for your reply.

fuad said...

Hello all, I have introduce a WiFI service in my area. To control my clients, I am using Mikrotik RB750. I have two ADSL connection. I want to load balance them and provide my users Hotspot service. Can anybody send me a step by step configuration tutorial or a backup file?

Unknown said...

hi can you send me the ppoe 2 load blance screep full
by my email that i can do eassyle

saidul777526@gmail.com

Post a Comment