Wednesday, November 27, 2013

Fail Over on Mikrotik

Oke it’s simple configuration fail over on mikrotik, and it’s picture schema network:


Yups,,, you can configuration in router client, you just add configuration dst-address=0.0.0.0/0, check-gateway=ping and you can change distance.


/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.10.1.1 scope=30 target-scope=10 check-gateway=ping
add disabled=no distance=4 dst-address=0.0.0.0/0 gateway=100.50.1.1 scope=30 target-scope=10 check-gateway=ping
and you can add 2 nat in router:

/ip firewall nat
add chain=srcnat action=masquerade out-interface=ether ISP A
add chain=srcnat action=masquerade out-interface=ether ISP B
you can test configuration, by unplugging one of the lan cable from one router isp, and you try to watch the ip route is visible no change. If viewed from the router configuration that leads to the ISP distence A smaller then the priority will lead to ISP A, if the UTP cable to unplug the ISP A in the route will automatically move to ISP B

No comments:

Post a Comment