BALANCEO DE CARGA NTH CON ENTRADAS PPPOE

- Si es de tu interés este artículo, apoyanos compartiendo en tus redes sociales favoritas y de esa manera también incentivando a tus amigos que crees les pueda interesar a que nos lean.

BALANCEO DE CARGA NTH CON ENTRADAS PPPOE
publicidad

1#  AGREGAR PPPOE CLIENTE

Interface List- Menu - Interfaz - (+) Agregar- PPPOE Client

          
               
2# AGREGAR DIRECCIÓN IP DE NUEVA RED LAN (También cambiar IP en Paso #6)


/ ip address
add address=192.168.6.1/24 network=192.168.6.0 broadcast=192.168.6.255 interface=ether5
              
3# ENMASCARADO NAT

/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out1
add action=masquerade chain=srcnat out-interface=pppoe-out2
add action=masquerade chain=srcnat out-interface=pppoe-out3
add action=masquerade chain=srcnat out-interface=pppoe-out4
                
4# AGREGAR DNS (Google y OpenDNS)

/ip dns
set servers=208.67.222.222,8.8.8.8,208.67.220.220,8.8.4.4
              
5# LO QUE ENTRA POR 1 WAN SALE POR EL MISMO

/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=pppoe-out1 new-connection-mark=ISP1_conn
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=pppoe-out2 new-connection-mark=ISP2_conn
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=pppoe-out3 new-connection-mark=ISP3_conn
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=pppoe-out4 new-connection-mark=ISP4_conn
add action=mark-routing chain=output connection-mark=ISP1_conn new-routing-mark=to_ISP1 passthrough=no
add action=mark-routing chain=output connection-mark=ISP2_conn new-routing-mark=to_ISP2 passthrough=no
add action=mark-routing chain=output connection-mark=ISP3_conn new-routing-mark=to_ISP3 passthrough=no
add action=mark-routing chain=output connection-mark=ISP4_conn new-routing-mark=to_ISP4 passthrough=no

6# AGREGAR RED BALANCEADA

/ip firewall address-list
add address=192.168.6.0/24 list=RED

7# BALANCEO DE PETICIONES NTH

/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local new-connection-mark=ISP1_conn nth=4,1 src-address-list=RED
add action=mark-routing chain=prerouting connection-mark=ISP1_conn new-routing-mark=to_ISP1 passthrough=no src-address-list=RED
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local new-connection-mark=ISP2_conn nth=4,2 src-address-list=RED
add action=mark-routing chain=prerouting connection-mark=ISP2_conn new-routing-mark=to_ISP2 passthrough=no src-address-list=RED
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local new-connection-mark=ISP3_conn nth=4,3 src-address-list=RED
add action=mark-routing chain=prerouting connection-mark=ISP3_conn new-routing-mark=to_ISP3 passthrough=no src-address-list=RED
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local new-connection-mark=ISP4_conn nth=4,4 src-address-list=RED
add action=mark-routing chain=prerouting connection-mark=ISP4_conn new-routing-mark=to_ISP4 passthrough=no src-address-list=RED

8# Agregar Gateway Y FAILOVER

/ip route
add check-gateway=ping distance=1 gateway=pppoe-out1
add check-gateway=ping distance=2 gateway=pppoe-out2
add check-gateway=ping distance=3 gateway=pppoe-out3
add check-gateway=ping distance=4 gateway=pppoe-out4
add check-gateway=ping distance=1 gateway=pppoe-out1 routing-mark=to_ISP1
add check-gateway=ping distance=1 gateway=pppoe-out2 routing-mark=to_ISP2
add check-gateway=ping distance=1 gateway=pppoe-out3 routing-mark=to_ISP3
add check-gateway=ping distance=1 gateway=pppoe-out3 routing-mark=to_ISP4


No hay comentarios