Sunteți pe pagina 1din 2

Manual de balanceo de carga PCC para 2 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=ether4 ] comment=Ether4 name=LAN

Configurando las direciones IP en cada Interfaz

PASO 2

/ip address
add address=172.168.1.1/24 interface=LAN network=172.168.1.0
add address=192.168.0.2/24 interface=WAN1 network=192.168.0.0
add address=192.168.1.2/24 interface=WAN2 network=192.168.1.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

PASO 4

creando las rutas

/ip route
add gateway=192.168.0.1 check-gateway=ping distance=1
add gateway=192.168.1.1 check-gateway=ping distance=2

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=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

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:2/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:2/1 action=mark-connection new-connection-
mark=WAN2_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

Paso 7

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

/ip route
add gateway=192.168.0.1 routing-mark=to_WAN1 check-gateway=ping
add gateway=192.168.1.1 routing-mark=to_WAN2 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

S-ar putea să vă placă și