Generador de balanceo de carga MikroTik — Herramienta gratuita para ISP
La solicitud falló, inténtelo de nuevo
¡Algo salió mal!
Configuración de balanceo de carga o conmutación por error con dos enlaces para RouterOS 7.
/routing table add name=to-wan1 fib
/routing table add name=to-wan2 fib
/ip firewall address-list add list=lan address=192.168.88.0/24
/ip firewall mangle
add chain=prerouting in-interface=ether1 connection-mark=no-mark action=mark-connection new-connection-mark=wan1-conn passthrough=yes
add chain=prerouting in-interface=ether2 connection-mark=no-mark action=mark-connection new-connection-mark=wan2-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/0 action=mark-connection new-connection-mark=wan1-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/1 action=mark-connection new-connection-mark=wan1-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/2 action=mark-connection new-connection-mark=wan1-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/3 action=mark-connection new-connection-mark=wan1-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/4 action=mark-connection new-connection-mark=wan1-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/5 action=mark-connection new-connection-mark=wan1-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/6 action=mark-connection new-connection-mark=wan1-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/7 action=mark-connection new-connection-mark=wan2-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/8 action=mark-connection new-connection-mark=wan2-conn passthrough=yes
add chain=prerouting src-address-list=lan dst-address-type=!local connection-mark=no-mark per-connection-classifier=both-addresses:10/9 action=mark-connection new-connection-mark=wan2-conn passthrough=yes
add chain=prerouting src-address-list=lan connection-mark=wan1-conn action=mark-routing new-routing-mark=to-wan1 passthrough=no
add chain=output connection-mark=wan1-conn action=mark-routing new-routing-mark=to-wan1 passthrough=no
add chain=prerouting src-address-list=lan connection-mark=wan2-conn action=mark-routing new-routing-mark=to-wan2 passthrough=no
add chain=output connection-mark=wan2-conn action=mark-routing new-routing-mark=to-wan2 passthrough=no
/ip route
add dst-address=0.0.0.0/0 gateway=192.0.2.1 routing-table=to-wan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.0.2.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=198.51.100.1 routing-table=to-wan2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=198.51.100.1 distance=2 check-gateway=ping
/ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade
add chain=srcnat out-interface=ether2 action=masqueradeEscrito para RouterOS 7. Elimina primero las rutas por defecto existentes y aplícalo desde la consola, no a través del enlace que estás cambiando.
Únete a miles de clientes satisfechos que transformaron su facturación y la operación de su red con ISPman. Nuestra plataforma está pensada para ayudarte a escalar tu negocio de forma eficiente: simplifica tus procesos y mejora la experiencia de tus clientes.
En marcha en un fin de semana
Incorporación guiada
Soporte que responde
Ingenieros reales, el mismo día
Usa tus propios equipos
MikroTik, Ruijie, OLT