Tuesday, September 20, 2016

LAB 13 : Static Routing Multi Gateway (ECMP Load Balancing)


Pada lab sebelumnya, kita telah membahas static routing dengan multihop, dan kali ini kita akan membahas static routing dengan multigateway. Untuk topologi adalah seperti pada gambar dibawah ini.


Maka, seperti biasanya, kita tambahkan ip address pada tiap-tiap interface yang akan kita gunakan pada tiap-tiap router. Kita mulai dengan IDN_R1
[admin@MikroTik] > system identity set name=IDN_R1
[admin@IDN_R1] > ip address add address=12.12.12.1/24 interface=ether2
[admin@IDN_R1] > ip address add address=17.17.17.1/24 interface=ether7
[admin@IDN_R1] > ip address add address=192.168.1.1/24 interface=ether1

Selanjtunya pada IDN_R2.
[admin@IDN_R2] > ip address add address=12.12.12.2/24 interface=ether1
[admin@IDN_R2] > ip address add address=23.23.23.2/24 interface=ether3

Kita teruskan dengan IDN_R3.
[admin@IDN_R3] > add address=23.23.23.3/24 interface=ether2 
[admin@IDN_R3] > add address=37.37.37.3/24 interface=ether7
[admin@IDN_R3] > add address=192.168.3.1/24 interface=ether3


Begitu pun pada IDN_R4.
[admin@IDN_R7] > ip address add address=17.17.17.7/24 interface=ether1
[admin@IDN_R7] > ip address add address=37.37.37.7/24 interface=ether3

Selanjutnya, seperti penjelasan pada lab-lab sebelumnya kita harus menambahkan konfigurasi routing agar masing-masing device bisa saling berkomunikasi, namun karena kali ini gateway kita lebih dari sati, maka kita masukkan kesemua gateway tersebut pada satu konfigurasi.
[admin@IDN_R1] > ip route add dst-address=23.23.23.0/24 gateway=12.12.12.2,17.17.17.7
[admin@IDN_R1] > ip route add dst-address=37.37.37.0/24 gateway=17.17.17.7,12.12.12.2
[admin@IDN_R1] > ip route add dst-address=192.168.3.0/24 gateway=17.17.17.7,12.12.12.2

Begitupun pada IDN_R2, tambahkan konfigurasi static routing dengan gateway lebih dari satu.
[admin@IDN_R2] > ip route add dst-address=192.168.1.0/24 gateway=12.12.12.1,23.23.23.3
[admin@IDN_R2] > ip route add dst-address=192.168.3.0/24 gateway=23.23.23.3,12.12.12.1
[admin@IDN_R2] > ip route add dst-address=37.37.37.0/24 gateway=23.23.23.3,12.12.12.1
[admin@IDN_R2] > ip route add dst-address=17.17.17.0/24 gateway=12.12.12.1,23.23.23.3

Pada IDN_R3 pun sama.
[admin@IDN_R3] > ip route add dst-address=12.12.12.0/24 gateway=23.23.23.2,37.37.37.7
[admin@IDN_R3] > ip route add dst-address=17.17.17.0/24 gateway=37.37.37.7,23.23.23.2
[admin@IDN_R3] > ip route add dst-address=192.168.1.0/24 gateway=37.37.37.7,23.23.23.2

Pun begitu halnya intnuk ke IDN_R7, dengan dua gateway.
[admin@IDN_R7] > ip route add dst-address=192.168.3.0/24 gateway=37.37.37.3,17.17.17.1
[admin@IDN_R7] > ip route add dst-address=23.23.23.0/24 gateway=37.37.37.3,17.17.17.1
[admin@IDN_R7] > ip route add dst-address=192.168.1.0/24 gateway=17.17.17.1,37.37.37.3
[admin@IDN_R7] > ip route add dst-address=12.12.12.0/24 gateway=17.17.17.1,37.37.37.3

Selanjutnya, cek table routing, dan pastikan lengkap.
[admin@IDN_R1] > 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 ADC 12.12.12.0/24 12.12.12.1 ether2 0
1 ADC 17.17.17.0/24 17.17.17.1 ether7 0
2 A S 23.23.23.0/24 12.12.12.2 1
17.17.17.7
3 A S 37.37.37.0/24 12.12.12.2 1
17.17.17.7
4 ADC 192.168.1.0/24 192.168.1.1 ether1 0
5 A S 192.168.3.0/24 12.12.12.2 1
17.17.17.7
[admin@IDN_R1] >

Cek pula table routing pada IDN_R2
[admin@IDN_R2] > 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 ADC 12.12.12.0/24 12.12.12.2 ether1 0
1 A S 17.17.17.0/24 23.23.23.3 1
12.12.12.1
2 ADC 23.23.23.0/24 23.23.23.2 ether3 0
3 A S 37.37.37.0/24 23.23.23.3 1
12.12.12.1
4 A S 192.168.1.0/24 23.23.23.3 1
12.12.12.1
5 A S 192.168.3.0/24 23.23.23.3 1
12.12.12.1
[admin@IDN_R2] >

R3 pun juga kita check routing tablenya.
[admin@IDN_R3] > 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 12.12.12.0/24 23.23.23.2 1
37.37.37.7
1 A S 17.17.17.0/24 23.23.23.2 1
37.37.37.7
2 ADC 23.23.23.0/24 23.23.23.3 ether2 0
3 ADC 37.37.37.0/24 37.37.37.3 ether7 0
4 A S 192.168.1.0/24 23.23.23.2 1
37.37.37.7
5 ADC 192.168.3.0/24 192.168.3.1 ether3 0

Pada IDN_R7 juga kita cek routing table.
[admin@IDN_R7] > 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 12.12.12.0/24 17.17.17.1 1
37.37.37.3
1 ADC 17.17.17.0/24 17.17.17.7 ether1 0
2 A S 23.23.23.0/24 17.17.17.1 1
37.37.37.3
3 ADC 37.37.37.0/24 37.37.37.7 ether3 0
4 A S 192.168.1.0/24 17.17.17.1 1
37.37.37.3
5 A S 192.168.3.0/24 17.17.17.1 1
37.37.37.3
Selanjutnya tinggal pemberian ip address pada masing-masing client.
PC1> ip 192.168.1.2/24 192.168.1.1
Checking for duplicate address...
PC1 : 192.168.1.2 255.255.255.0 gateway 192.168.1.1

PC3> ip 192.168.3.2/24 192.168.3.1
Checking for duplicate address...
PC1 : 192.168.3.2 255.255.255.0 gateway 192.168.3.1

Terkkhir tinggal lakukan PING.
PC1> ping 192.168.3.2
84 bytes from 192.168.3.2 icmp_seq=1 ttl=61 time=16.110 ms
84 bytes from 192.168.3.2 icmp_seq=2 ttl=61 time=3.106 ms
84 bytes from 192.168.3.2 icmp_seq=3 ttl=61 time=2.672 ms
84 bytes from 192.168.3.2 icmp_seq=4 ttl=61 time=2.900 ms


PC3> ping 192.168.1.2
84 bytes from 192.168.1.2 icmp_seq=1 ttl=61 time=31.861 ms
84 bytes from 192.168.1.2 icmp_seq=2 ttl=61 time=12.077 ms
84 bytes from 192.168.1.2 icmp_seq=3 ttl=61 time=2.484 ms
^C

0 comments:

Total Pageviews

Blog Archive

Popular Posts