1. Setting IP address
[admin@GW] > ip address add address=1.1.1.2/30 interface=ether1
[admin@GW] > ip address add address=2.2.2.2/30 interface=ether2
[admin@GW] > ip address add address=192.168.1.254/24 interface=ether3
2. Setting Route
[admin@GW] > ip route add dst-address=0.0.0.0/0 gateway=1.1.1.1,2.2.2.1 check-gateway=ping
[admin@GW] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 2.2.2.1 1
1.1.1.1
1 ADC 1.1.1.0/30 1.1.1.2 ether1 0
2 ADC 2.2.2.0/30 2.2.2.1 ether2 0
3 ADC 192.168.1.0/24 192.168.1.254 ether3 0
3. Setting DNS
[admin@GW] > ip dns set servers=1.1.1.1,2.2.2.1 allow-remote-request=yes
4. Firewall
[admin@GW] > ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
[admin@GW] > ip firewall nat add chain=srcnat out-interface=ether2 action=masquerade
5. Setting DNS ECMP (jika bandwidthnya berbeda)
Jika alokasi ISP A 2mbps, ISP B 1mbps (2:1)
[admin@GW] > ip route add dst-address=0.0.0.0/0 gateway=1.1.1.1,1.1.1.1,2.2.2.1 check-gateway=ping
[admin@GW] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 2.2.2.1 1
1.1.1.1
1.1.1.1
1 ADC 1.1.1.0/30 1.1.1.2 ether1 0
2 ADC 2.2.2.0/30 2.2.2.1 ether2 0
3 ADC 192.168.1.0/24 192.168.1.254 ether3 0
# Setting Failover
1. Setting DNS
[admin@GW] > ip route add dst-address=0.0.0.0/0 gateway=1.1.1.1 check-gateway=ping
[admin@GW] > ip route add dst-address=0.0.0.0/0 gateway=2.2.2.1 distance=10 check-gateway=ping
2. [admin@GW] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 1.1.1.1 1
1 S 0.0.0.0/0 2.2.2.1 10
2 ADC 1.1.1.0/30 1.1.1.2 ether1 0
3 ADC 2.2.2.0/30 2.2.2.1 ether2 0
4 ADC 192.168.1.0/24 192.168.1.254 ether3 0
Sumber : http://www.ilmujaringan.com/konfigurasi-load-balancing-router-mikrotik-ecmp/
Subscribe to:
Post Comments (Atom)
0 Response to "Cara Setting atau konfigurasi load balancing plus failover pada router mikrotik"
Post a Comment