Manual-balanceo-De-carga PCC Router Neutro 3 ADSL

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

Manual de balanceo de carga PCC para 3 Lineas de Internet de la misma Velocidad

si sigues estos 8 pasos basicos tendra tu balaneco Operando de manera correcta

PASO 1

Nombrando las interfaces

aqui se deben identificar las interfaces que van a usar

/interface ethernet
set [ find default-name=ether1 ] comment=Ether1 name=WAN1
set [ find default-name=ether2 ] comment=Ether2 name=WAN2
set [ find default-name=ether3 ] comment=Ether3 name=WAN3
set [ find default-name=ether5 ] comment=Ether5 name=LAN

Configurando las direeciones IP en cada Interfaz

PASO 2

/ip address
add address=192.168.1.1/24 interface=LAN network=192.168.1.0
add address=192.168.100.2/24 interface=WAN1 network=192.168.100.0
add address=192.168.200.2/24 interface=WAN2 network=192.168.200.0
add address=192.168.250.2/24 interface=WAN3 network=192.168.250.0

PASO 3

Enmascarando las interfaces WAN

/ip firewall nat


add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=WAN2
add action=masquerade chain=srcnat out-interface=WAN3

PASO 4

creando las rutas

/ip route
add gateway=192.168.100.1 check-gateway=ping distance=1
add gateway=192.168.200.1 check-gateway=ping distance=2
add gateway=192.168.250.1 check-gateway=ping distance=3

Paso 5

Vamos a configurar en el mangle las siguientes lineas sirven para marcar las
conexiones nuevas
y que lo que entre por una conexion WAN Salga por la misma.
/ip firewall mangle
add chain=prerouting in-interface=WAN1 connection-state=new new-connection-
mark=WAN1_conn action=mark-connection passthrough=yes
add chain=prerouting in-interface=WAN2 connection-state=new new-connection-
mark=WAN2_conn action=mark-connection passthrough=yes
add chain=prerouting in-interface=WAN3 connection-state=new new-connection-
mark=WAN3_conn action=mark-connection passthrough=yes

add chain=output connection-mark=WAN1_conn new-routing-mark=to_WAN1 action=mark-


routing passthrough=yes
add chain=output connection-mark=WAN2_conn new-routing-mark=to_WAN2 action=mark-
routing passthrough=yes
add chain=output connection-mark=WAN3_conn new-routing-mark=to_WAN3 action=mark-
routing passthrough=yes

Paso 6

Ahora dividiremos las conexiones que ingresan por la interfaz nombrada "LAN"
utilizando el clasificador per-connection-classifier

/ip firewall mangle


add chain=prerouting in-interface=LAN connection-state=new dst-address-type=!local
per-connection-classifier=both-addresses:3/0 action=mark-connection new-connection-
mark=WAN1_conn passthrough=yes
add chain=prerouting in-interface=LAN connection-state=new dst-address-type=!local
per-connection-classifier=both-addresses:3/1 action=mark-connection new-connection-
mark=WAN2_conn passthrough=yes
add chain=prerouting in-interface=LAN connection-state=new dst-address-type=!local
per-connection-classifier=both-addresses:3/2 action=mark-connection new-connection-
mark=WAN3_conn passthrough=yes

y tambien marcamos las rutas de las conexiones

/ip firewall mangle


add chain=prerouting in-interface=LAN connection-mark=WAN1_conn action=mark-routing
new-routing-mark=to_WAN1 passthrough=yes
add chain=prerouting in-interface=LAN connection-mark=WAN2_conn action=mark-routing
new-routing-mark=to_WAN2 passthrough=yes
add chain=prerouting in-interface=LAN connection-mark=WAN3_conn action=mark-routing
new-routing-mark=to_WAN3 passthrough=yes

Paso 7

Configurando las rutas, recuerdan las marcas de ruta que hicimos en el paso 5,
to_WAN1, to_WAN2 y to_WAN3 vamos a usarlas ahora

/ip route
add gateway=192.168.100.1 routing-mark=to_WAN1 check-gateway=ping
add gateway=192.168.200.1 routing-mark=to_WAN2 check-gateway=ping
add gateway=192.168.250.1 routing-mark=to_WAN3 check-gateway=ping

Paso 8

Configurando los DNS Publicos


/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4

You might also like