Sunday, March 27, 2016

MikroTik Fail Over Dual WAN

MikroTik Fail Over Dual WAN

This is a Lab Scenario, We have 2 IP address with 2 Gateway to Internet as above.
Here We go:
* 8.8.8.8 = Public Google DNS
221.132.112.8 = TW DNS (PK)

 1.    Login
Login with user (admin) and (no password)

2. Set New Password
psswor
3.  Set Hostname
system  identity set name=HQ-MKT6.30
4. Set IP, DNS , Gateway and NAT
ETHER1
interface Ethernet set name=ISP1 ether1
ip address add address=124.248.161.61/29 disabled=no interface=ISP1
ip dns set servers=8.8.8.8 allow-remote-request=yes
ip route add gateway=124.248.161.62 check-gateway=ping
ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=ISP1

ETHER2
interface Ethernet set name=LAN172 ether2
ip address add address=172.16.5.254/24 disabled=no interface=LAN172

ETHER3
interface Ethernet set name=ISP2 ether3
ip address add address=124.248.160.209/28 disabled=no interface=ISP2
ip dns set servers=221.132.112.8 allow-remote-request=yes
ip route add gateway=124.248.160.222 check-gateway=ping
ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=ISP2

5. Configure Load Balance
ip route add dst-address=8.8.8.8 gateway=124.248.161.62 scope=10
ip route add dst-address=221.132.112.8 gateway=124.248.160.222 scope=10
ip route add distance=1 gateway=8.8.8.8 check-gateway=ping
ip route add distance=2 gateway=221.132.112.8 check-gateway=ping                                           

That All, Done.

No comments:

Post a Comment