Pada topologi diatas kita juga harus konfigurasi virtual link ya.. karena Area 2 tidak terhubung langsung dengan Area 0..
Oke pertama kita konfigurasikan ip address pada ketiga IOS XR sesuai topologi diatas
RP/0/0/CPU0:IOS-XR1(config)#int g0/0/0/0 RP/0/0/CPU0:IOS-XR1(config-if)#no sh RP/0/0/CPU0:IOS-XR1(config-if)#ipv4 add 12.12.12.1/24 RP/0/0/CPU0:IOS-XR1(config-if)#int l0 RP/0/0/CPU0:IOS-XR1(config-if)#ipv4 add 1.1.1.1/32 RP/0/0/CPU0:IOS-XR1(config-if)#int l1 RP/0/0/CPU0:IOS-XR1(config-if)#ipv4 add 11.11.11.11/32 RP/0/0/CPU0:IOS-XR1(config-if)#commit Sat Jun 3 15:06:51.991 UTC
RP/0/0/CPU0:IOS-XR2(config)#int g0/0/0/0 RP/0/0/CPU0:IOS-XR2(config-if)#no sh RP/0/0/CPU0:IOS-XR2(config-if)#ipv4 add 12.12.12.2/24 RP/0/0/CPU0:IOS-XR2(config-if)#int l0 RP/0/0/CPU0:IOS-XR2(config-if)#ipv4 add 2.2.2.2/32 RP/0/0/CPU0:IOS-XR2(config-if)#int l1 RP/0/0/CPU0:IOS-XR2(config-if)#ipv4 add 22.22.22.22/32 RP/0/0/CPU0:IOS-XR2(config-if)#int g0/0/0/1 RP/0/0/CPU0:IOS-XR2(config-if)#no sh RP/0/0/CPU0:IOS-XR2(config-if)#ipv4 add 23.23.23.2/24 RP/0/0/CPU0:IOS-XR2(config-if)#commit
Oke.. konfigurasi ip address sudah selesai ya.. untuk pengujian, kita coba lakukan uji ping ke directly connected network masing2 router.. Berikut pengujian ping dari IOS-XR1 ke IOS-XR2RP/0/0/CPU0:IOS-XR3(config)#int g0/0/0/0 RP/0/0/CPU0:IOS-XR3(config-if)#no sh RP/0/0/CPU0:IOS-XR3(config-if)#ipv4 add 23.23.23.3/24 RP/0/0/CPU0:IOS-XR3(config-if)#int l0 RP/0/0/CPU0:IOS-XR3(config-if)#ipv4 add 3.3.3.3/32 RP/0/0/CPU0:IOS-XR3(config-if)#int l1 RP/0/0/CPU0:IOS-XR3(config-if)#ipv4 add 33.33.33.33/32 RP/0/0/CPU0:IOS-XR3(config-if)#commit
Oke dari IOS-XR1 ke IOS-XR2 berhasil.. sekarang kita coba dari IOS-XR2 ke IOS-XR3RP/0/0/CPU0:IOS-XR1(config-if)#do ping ipv4 12.12.12.2 Sat Jun 3 15:10:34.386 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 12.12.12.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/14/59 ms
Oke.. sudah berhasil juga ya..RP/0/0/CPU0:IOS-XR2(config-if)#do ping ipv4 23.23.23.3 Sat Jun 3 15:11:08.853 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 23.23.23.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/10/39 ms
Lanjut kita konfigurasi OSPF pada ketiga router tersebut.. perhatikan konfigurasinya harus sesuai topologi ya.. pada topologi kita diminta untuk mengkonfigurasi OSPF dengan 3 area..
Oke langsung saja, berikut konfigurasi OSPF pada IOS-XR1
Perhatikan bahwa kita tidak menggunakan perintah network pada IOS XR, kita menggunakan perintah interface seperti diatas, untuk pengujian kita coba lihat running-config nya yaRP/0/0/CPU0:IOS-XR1(config)#router ospf 1 RP/0/0/CPU0:IOS-XR1(config-ospf)#router-id 1.1.1.1 RP/0/0/CPU0:IOS-XR1(config-ospf)#area 0 RP/0/0/CPU0:IOS-XR1(config-ospf-ar)#interface lo0 RP/0/0/CPU0:IOS-XR1(config-ospf-ar-if)#int l1 RP/0/0/CPU0:IOS-XR1(config-ospf-ar-if)#area 1 RP/0/0/CPU0:IOS-XR1(config-ospf-ar)#int g0/0/0/0 RP/0/0/CPU0:IOS-XR1(config-ospf-ar-if)#commit
Oke.. sekarang lanjut konfigurasi di IOS-XR2 yaaRP/0/0/CPU0:IOS-XR1(config-ospf)#do sh run router ospf Sat Jun 3 15:21:25.241 UTC router ospf 1 router-id 1.1.1.1 area 0 interface Loopback0 interface Loopback1 ! ! area 1 interface GigabitEthernet0/0/0/0 ! !
Setelah konfigurasi di IOS-XR1 dan IOS-XR2, seharusnya kedua router tersebut sudah adjacency OSPF.. kita coba lihat dulu yaaRP/0/0/CPU0:IOS-XR2(config)#router ospf 2 RP/0/0/CPU0:IOS-XR2(config-ospf)#router-id 2.2.2.2 RP/0/0/CPU0:IOS-XR2(config-ospf)#area 1 RP/0/0/CPU0:IOS-XR2(config-ospf-ar)#int lo0 RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#int g0/0/0/0 RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#area 2 RP/0/0/CPU0:IOS-XR2(config-ospf-ar)#int lo1 RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#int g0/0/0/1 RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#commit Sat Jun 3 15:25:53.883 UTC RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#do sh run router ospf Sat Jun 3 15:27:19.337 UTC router ospf 2 router-id 2.2.2.2 area 1 interface Loopback0 interface GigabitEthernet0/0/0/0 ! area 2 interface Loopback1 interface GigabitEthernet0/0/0/1 ! !
Perhatikan bahwa state nya sudah full... Sekarang kita lanjut konfigurasi di IOS-XR3 yaaRP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#do sh ospf neig Sat Jun 3 15:29:20.029 UTC * Indicates MADJ interface Neighbors for OSPF 2 Neighbor ID Pri State Dead Time Address Interface 1.1.1.1 1 FULL/DR 00:00:34 12.12.12.1 GigabitEth0/0/0/0 Neighbor is up for 00:03:15 Total neighbor count: 1
Kita coba lihat neighbor tabel di IOS-XR2 ya.. seharusnya IOS-XR2 punya 2 neighborRP/0/0/CPU0:IOS-XR3(config)#router ospf 3 RP/0/0/CPU0:IOS-XR3(config-ospf)#router-id 3.3.3.3 RP/0/0/CPU0:IOS-XR3(config-ospf)#area 2 RP/0/0/CPU0:IOS-XR3(config-ospf-ar)#int g0/0/0/0 RP/0/0/CPU0:IOS-XR3(config-ospf-ar-if)#int l0 RP/0/0/CPU0:IOS-XR3(config-ospf-ar-if)#int l1 RP/0/0/CPU0:IOS-XR3(config-ospf-ar-if)#commit Sat Jun 3 15:32:09.727 UTC RP/0/0/CPU0:IOS-XR3(config-ospf-ar-if)#do sh run router ospf Sat Jun 3 15:32:18.186 UTC router ospf 3 router-id 3.3.3.3 area 2 interface Loopback0 interface Loopback1 interface GigabitEthernet0/0/0/0 ! !
Oke IOS-XR2 sudah punya 2 neighbor ya.. dan statenya sudah full semua.. terahir kita akan konfigurasikan virtual link antara IOS-XR1 dan IOS-XR2..RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#do sh ospf neigh Sat Jun 3 15:34:20.278 UTC * Indicates MADJ interface Neighbors for OSPF 2 Neighbor ID Pri State Dead Time Address Interface 1.1.1.1 1 FULL/DR 00:00:38 12.12.12.1 GigabitEth0/0/0/0 Neighbor is up for 00:08:15 3.3.3.3 1 FULL/BDR 00:00:35 23.23.23.3 GigabitEth0/0/0/1 Neighbor is up for 00:01:59 Total neighbor count: 2
RP/0/0/CPU0:IOS-XR1(config)#router ospf 1 RP/0/0/CPU0:IOS-XR1(config-ospf)#area 1 RP/0/0/CPU0:IOS-XR1(config-ospf-ar)#virtual-link 2.2.2.2 RP/0/0/CPU0:IOS-XR1(config-ospf-ar-vl)#commit
Oke, untuk pengujian, pastikan tabel routing di seluruh router sudah lengkapRP/0/0/CPU0:IOS-XR2(config)#router ospf 2 RP/0/0/CPU0:IOS-XR2(config-ospf)#area 1 RP/0/0/CPU0:IOS-XR2(config-ospf-ar)#virtual-link 1.1.1.1 RP/0/0/CPU0:IOS-XR2(config-ospf-ar-vl)#commit
Perhatikan bahwa IOS XR1 sudah punya tabel routing OSPF lengkap, kita coba cek di IOS-XR2 dan IOS-XR3RP/0/0/CPU0:IOS-XR1#show route ospf Sat Jun 3 15:56:53.025 UTC O 2.2.2.2/32 [110/2] via 12.12.12.2, 00:00:40, GigabitEthernet0/0/0/0 O IA 3.3.3.3/32 [110/3] via 12.12.12.2, 00:00:30, GigabitEthernet0/0/0/0 O IA 22.22.22.22/32 [110/2] via 12.12.12.2, 00:00:30, GigabitEthernet0/0/0/0 O IA 23.23.23.0/24 [110/2] via 12.12.12.2, 00:00:30, GigabitEthernet0/0/0/0 O IA 33.33.33.33/32 [110/3] via 12.12.12.2, 00:00:30, GigabitEthernet0/0/0/0
RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#do sh route ospf Sat Jun 3 15:58:15.940 UTC O 1.1.1.1/32 [110/2] via 12.12.12.1, 00:01:52, GigabitEthernet0/0/0/0 O 3.3.3.3/32 [110/2] via 23.23.23.3, 00:02:06, GigabitEthernet0/0/0/1 O 11.11.11.11/32 [110/2] via 12.12.12.1, 00:01:52, GigabitEthernet0/0/0/0 O 33.33.33.33/32 [110/2] via 23.23.23.3, 00:02:06, GigabitEthernet0/0/0/1
Oke tabel routing di IOS-XR2 dan IOS-XR3 juga sudah lengkap.. Untuk lebih memastikan kita coba ping ya.. kita akan coba ping dari IOS-XR1 ke loopback XR2 dan XR3RP/0/0/CPU0:IOS-XR3#show route ospf Sat Jun 3 15:58:35.758 UTC O IA 1.1.1.1/32 [110/3] via 23.23.23.2, 00:02:12, GigabitEthernet0/0/0/0 O IA 2.2.2.2/32 [110/2] via 23.23.23.2, 00:02:22, GigabitEthernet0/0/0/0 O IA 11.11.11.11/32 [110/3] via 23.23.23.2, 00:02:12, GigabitEthernet0/0/0/0 O IA 12.12.12.0/24 [110/2] via 23.23.23.2, 00:02:22, GigabitEthernet0/0/0/0 O 22.22.22.22/32 [110/2] via 23.23.23.2, 00:02:26, GigabitEthernet0/0/0/0
Oke ping sudah jalan semua ya...RP/0/0/CPU0:IOS-XR1#ping 2.2.2.2 Sat Jun 3 16:02:21.183 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms RP/0/0/CPU0:IOS-XR1#ping 22.22.22.22 Sat Jun 3 16:02:23.943 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 22.22.22.22, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms RP/0/0/CPU0:IOS-XR1#ping 3.3.3.3 Sat Jun 3 16:02:25.882 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/6/19 ms RP/0/0/CPU0:IOS-XR1#ping 33.33.33.33 Sat Jun 3 16:02:28.582 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 33.33.33.33, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/9 ms
Alhamdulillah lab kedua kita tentang IOS XR sudah berhasil.. sampai ketemu di artikel selanjutnya yaa.. In Syaa Allah masih akan tetap tentang IOS XR
Tidak ada komentar:
Posting Komentar
Komentar