quinta-feira, 23 de janeiro de 2014

Mikrotik Load balnce funcionando! (RB2011L-IN) Mikrotik Load balance running! (RB2011L-IN)

Load balnce funcionando! (RB2011L-IN)

Claro! Basicamente é só efetuar algumas marcações de conexão e rota, depois configurar as rotas, segue as regras: e com partilhar.
mangle
/ip firewall mangle
add action=mark-connection chain=prerouting comment=NQT disabled=no \
in-interface="ether3 - CLIENTES" new-connection-mark=nqt_conn passthrough=\
yes per-connection-classifier=both-addresses-and-ports:3/0
add action=mark-connection chain=prerouting disabled=no in-interface=\
"ether3 - CLIENTES" new-connection-mark=nqt_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:3/1
add action=mark-routing chain=prerouting connection-mark=nqt_conn disabled=no \
in-interface="ether3 - CLIENTES" new-routing-mark=nqt_rote passthrough=yes
add action=mark-connection chain=prerouting comment=OI disabled=no \
in-interface="ether3 - CLIENTES" new-connection-mark=oi_conn passthrough=\
yes per-connection-classifier=both-addresses-and-ports:3/2
add action=mark-routing chain=prerouting connection-mark=oi_conn disabled=no \
in-interface="ether3 - CLIENTES" new-routing-mark=oi_rote passthrough=yes
rotas
/ip route
add comment=LOAD BALANCE disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
DIGITE AQUI O GATEWAY DA OPERADORA 1 routing-mark=nqt_rote scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=DIGITE AQUI O GATEWAY DA OPERADORA 2 \
routing-mark=oi_rote scope=30 target-scope=10
add comment=ROTAS_DEFAULT disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
DIGITE AQUI O GATEWAY DA OPERADORA 1 scope=30 target-scope=10
add disabled=no distance=3 dst-address=0.0.0.0/0 gateway=DIGITE AQUI O GATEWAY DA OPERADORA 2 scope=30 \
target-scope=10
Obs.: onde ta escrito DIGITE AQUI O GATEWAY DA OPERADORA 1 e 2 é só apagar e digitar o ende Claro! Basicamente é só efetuar algumas marcações de conexão e rota, depois configurar as rotas, segue as regras:
mangle
/ip firewall mangle
add action=mark-connection chain=prerouting comment=NQT disabled=no \
in-interface="ether3 - CLIENTES" new-connection-mark=nqt_conn passthrough=\
yes per-connection-classifier=both-addresses-and-ports:3/0
add action=mark-connection chain=prerouting disabled=no in-interface=\
"ether3 - CLIENTES" new-connection-mark=nqt_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:3/1
add action=mark-routing chain=prerouting connection-mark=nqt_conn disabled=no \
in-interface="ether3 - CLIENTES" new-routing-mark=nqt_rote passthrough=yes
add action=mark-connection chain=prerouting comment=OI disabled=no \
in-interface="ether3 - CLIENTES" new-connection-mark=oi_conn passthrough=\
yes per-connection-classifier=both-addresses-and-ports:3/2
add action=mark-routing chain=prerouting connection-mark=oi_conn disabled=no \
in-interface="ether3 - CLIENTES" new-routing-mark=oi_rote passthrough=yes
rotas
/ip route
add comment=LOAD BALANCE disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
DIGITE AQUI O GATEWAY DA OPERADORA 1 routing-mark=nqt_rote scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=DIGITE AQUI O GATEWAY DA OPERADORA 2 \
routing-mark=oi_rote scope=30 target-scope=10
add comment=ROTAS_DEFAULT disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
DIGITE AQUI O GATEWAY DA OPERADORA 1 scope=30 target-scope=10
add disabled=no distance=3 dst-address=0.0.0.0/0 gateway=DIGITE AQUI O GATEWAY DA OPERADORA 2 scope=30 \
target-scope=10

Obs.: onde ta escrito DIGITE AQUI O GATEWAY DA OPERADORA 1 e 2 é só apagar e digitar o endereço do gateway fornecido pela sua operadora.reço do gateway fornecido pela sua operadora...

Nenhum comentário:

Postar um comentário