Hello there
i have to gateways and i tried to load balance them at firest i tried
ECMP load balancing with masquerade
i got the two lines speed
but i got connection interruptions every 5~10 min so i tried to find why . i found this topic ECMP
so i tried the other way that normis talked about it ..
but i can't load balace the two lines now
this is my config.
/ip address
add address=192.168.100.1/24 broadcast=192.168.100.255 comment="" disabled=no interface=Local network=192.168.100.0
add address=192.168.0.25/24 broadcast=192.168.0.255 comment="" disabled=no interface=WAN-1 network=192.168.0.0
add address=192.168.1.5/24 broadcast=192.168.1.255 comment="" disabled=no interface=WAN-2 network=192.168.1.0
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.0.1 routing-mark=odd scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=even scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10
/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN-1
add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN-2
/ip firewall mangle
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=Local new-connection-mark=odd passthrough=yes src-address-list=odd
add action=mark-routing chain=prerouting comment="" disabled=no in-interface=Local new-routing-mark=odd passthrough=yes src-address-list=odd
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=Local new-connection-mark=even passthrough=yes src-address-list=even
add action=mark-routing chain=prerouting comment="" disabled=no in-interface=Local new-routing-mark=even passthrough=yes src-address-list=even
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=Local new-connection-mark=odd nth=2,1 passthrough=yes
add action=add-src-to-address-list address-list=odd address-list-timeout=1d chain=prerouting comment="" connection-mark=odd disabled=no in-interface=Local
add action=mark-routing chain=prerouting comment="" connection-mark=odd disabled=no in-interface=Local new-routing-mark=odd passthrough=no
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=Local new-connection-mark=even nth=2,2 passthrough=yes
add action=add-src-to-address-list address-list=even address-list-timeout=1d chain=prerouting comment="" connection-mark=even disabled=no in-interface=Local
add action=mark-routing chain=prerouting comment="" connection-mark=even disabled=no in-interface=Local new-routing-mark=even passthrough=no
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=Local new-connection-mark=even nth=2,2 passthrough=yes src-address-list=!odd
/ip dns
set allow-remote-requests=no cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 primary-dns=163.121.128.134 secondary-dns=163.121.128.135
so what is wrong ?
any help pls .
*sorry for my bad english*