apa sih bedanya antara Cisco IOS dengan Cisco IOS XR? Secara umum Cisco IOS XR lebih stabil dan memiliki fitur yang lebih advanced.. biasanya sih IOS XR digunakan di service provider.. sejauh ini itu sih yang saya tau tentang IOS XR,.. belum pernah implement juga sih.. hehehe
Oke langsung saja pada lab ini kita akan belajar konfigurasi static routing di IOS XR. berikut topologi yang akan kita gunakan pada lab ini
Nantinya kita akan menggunakan static routing di IOS XR-1 dan default route di IOS XR-2.
Pertama kita konfigurasikan IP Address pada IOS XR-1 dan 2 sesuai topologi diatas. Berikut konfigurasi di IOS-XR1
Konfigurasi diatas belum masuk ke konfig IP sih.. tapi nyadar nda kalau ada yang beda? perhatikan bahwa setelah konfig hostname, tidak langsung berubah.. hal ini karena kita harus menggunakan perintah commit terlebih dahuluRP/0/0/CPU0:ios#conf t Sat Jun 3 14:32:33.568 UTC RP/0/0/CPU0:ios(config)#hostname IOS-XR1
Perhatikan bahwa saat ini hostname sudah berubah. intinya kita harus mengetikkan perintah commit agar konfigurasi yg kita lakukan bisa dijalankan.RP/0/0/CPU0:ios(config)#commit Sat Jun 3 14:34:34.429 UTC RP/0/0/CPU0:IOS-XR1(config)#
Oke sekarang kita konfigurasikan IP Address nya ya.. tapi sebelumnya kita coba lihat status interfacenya dulu
Perhatikan bahwa perintah untuk melihat status interface pun sedikit berbeda dengan Cisco IOS. Selanjutnya berikut perintah untuk konfigurasi ip address di IOS XRRP/0/0/CPU0:IOS-XR1(config)#do show ipv4 interface brief Sat Jun 3 14:36:41.571 UTC Interface IP-Address Status Protocol GigabitEthernet0/0/0/0 unassigned Shutdown Down GigabitEthernet0/0/0/1 unassigned Shutdown Down GigabitEthernet0/0/0/2 unassigned Shutdown Down
Sekarang kita coba lihat status interface nyaRP/0/0/CPU0:IOS-XR1(config)#int gi0/0/0/0 RP/0/0/CPU0:IOS-XR1(config-if)#no shutdown RP/0/0/CPU0:IOS-XR1(config-if)#ipv4 address 12.12.12.1/24
Nah lho.. kog masih belum ada konfignya? padahal kan kita sudah konfig...???RP/0/0/CPU0:IOS-XR1(config)#do show ipv4 interface brief Sat Jun 3 14:36:41.571 UTC Interface IP-Address Status Protocol GigabitEthernet0/0/0/0 unassigned Shutdown Down GigabitEthernet0/0/0/1 unassigned Shutdown Down GigabitEthernet0/0/0/2 unassigned Shutdown Down
Hayoo.. sudah lupa kah? kan sudah saya bilang harus commit dulu... kita coba commit dulu yaa
Nah.. setelah commit baru deh konfig IP nya jalan.. Lanjut kita konfigurasi interface loopback nya yaRP/0/0/CPU0:IOS-XR1(config-if)#commit RP/0/0/CPU0:IOS-XR1(config-if)#do sho ipv4 int br Sat Jun 3 14:41:06.273 UTC Interface IP-Address Status Protocol GigabitEthernet0/0/0/0 12.12.12.1 Up Up GigabitEthernet0/0/0/1 unassigned Shutdown Down GigabitEthernet0/0/0/2 unassigned Shutdown Down
Kita coba lihat status interfacenya lagiRP/0/0/CPU0:IOS-XR1(config-if)#int lo0 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 14:42:09.338 UTC
Oke sudah sesuai ya.. sekarang lanjut kita konfigurasi di IOS XR-2RP/0/0/CPU0:IOS-XR1(config-if)#do sh ipv4 int br Sat Jun 3 14:42:30.357 UTC Interface IP-Address Status Protocol Loopback0 1.1.1.1 Up Up Loopback1 11.11.11.11 Up Up GigabitEthernet0/0/0/0 12.12.12.1 Up Up GigabitEthernet0/0/0/1 unassigned Shutdown Down GigabitEthernet0/0/0/2 unassigned Shutdown Down
Oke.. konfigurasi IP Address sudah selesai, sekarang lanjut kita konfigurasikan routing static nya..RP/0/0/CPU0:ios(config)#host IOS-XR2 RP/0/0/CPU0:ios(config)#int g0/0/0/0 RP/0/0/CPU0:ios(config-if)#no sh RP/0/0/CPU0:ios(config-if)#ipv4 add 12.12.12.2/24 RP/0/0/CPU0:ios(config-if)#int l0 RP/0/0/CPU0:ios(config-if)#ipv4 add 2.2.2.2/32 RP/0/0/CPU0:ios(config-if)#int l1 RP/0/0/CPU0:ios(config-if)#ipv4 add 22.22.22.22/32 RP/0/0/CPU0:ios(config-if)#commit RP/0/0/CPU0:IOS-XR2(config-if)#do sh ipv4 int br Sat Jun 3 14:43:42.482 UTC Interface IP-Address Status Protocol Loopback0 2.2.2.2 Up Up Loopback1 22.22.22.22 Up Up GigabitEthernet0/0/0/0 12.12.12.2 Up Up GigabitEthernet0/0/0/1 unassigned Shutdown Down GigabitEthernet0/0/0/2 unassigned Shutdown Down
Disini kita akan konfigurasi routing static di IOS XR1 dan static default route di IOS XR2. Berikut konfigurasi static routing di IOS XR1
Untuk pengujian, kita bisa menggunakan perintah show run ataupun melihat tabel routing seperti berikutRP/0/0/CPU0:IOS-XR1(config)#router static address-family ipv4 unicast 2.2.2.2/32 12.12.12.2 RP/0/0/CPU0:IOS-XR1(config)#router static address-family ipv4 unicast 22.22.22.22/32 12.12.12.2 RP/0/0/CPU0:IOS-XR1(config)#commit
Oke.. saya rasa konfigurasi di IOS XR1 sudah selesai.. bisa difahami kan ya? meski perintahnya aga berbeda tapi konsepnya sama aja kog dengan IOS biasa..RP/0/0/CPU0:IOS-XR1(config)#do sh run router static Sat Jun 3 14:47:37.936 UTC router static address-family ipv4 unicast 2.2.2.2/32 12.12.12.2 22.22.22.22/32 12.12.12.2 ! ! RP/0/0/CPU0:IOS-XR1(config)#do sh route Gateway of last resort is not set L 1.1.1.1/32 is directly connected, 00:05:46, Loopback0 S 2.2.2.2/32 [1/0] via 12.12.12.2, 00:00:42 L 11.11.11.11/32 is directly connected, 00:05:46, Loopback1 C 12.12.12.0/24 is directly connected, 00:06:57, GigabitEthernet0/0/0/0 L 12.12.12.1/32 is directly connected, 00:06:57, GigabitEthernet0/0/0/0 S 22.22.22.22/32 [1/0] via 12.12.12.2, 00:00:42
Sekarang kita lanjut konfigurasi default route di IOS XR2
Oke.. saya rasa konfigurasi sudah selesai.. sekarang kita lakukan pengujian ping yaa..Berikut pengujian ping dari IOS XR1 ke loopback XR2RP/0/0/CPU0:IOS-XR2(config)#router static address-family ipv4 unicast0.0.0.0/0 12.12.12.1 RP/0/0/CPU0:IOS-XR2(config)#commit RP/0/0/CPU0:IOS-XR2(config)#do sh route Gateway of last resort is 12.12.12.1 to network 0.0.0.0 S* 0.0.0.0/0 [1/0] via 12.12.12.1, 00:00:17 L 2.2.2.2/32 is directly connected, 00:06:28, Loopback0 C 12.12.12.0/24 is directly connected, 00:06:28, GigabitEthernet0/0/0/0 L 12.12.12.2/32 is directly connected, 00:06:28, GigabitEthernet0/0/0/0 L 22.22.22.22/32 is directly connected, 00:06:28, Loopback1
Oke berhasil semua ya... sekarang kita coba ping dari IOS XR2 ke loopback XR1RP/0/0/CPU0:IOS-XR1(config)#do ping ipv4 2.2.2.2 Sat Jun 3 14:50:49.653 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/16/69 ms RP/0/0/CPU0:IOS-XR1(config)#do ping ipv4 22.22.22.22 Sat Jun 3 14:50:55.222 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/2/9 ms
Oke jalan semua ya.....RP/0/0/CPU0:IOS-XR2(config)#do ping ipv4 1.1.1.1 Sat Jun 3 14:51:41.599 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 1.1.1.1, 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-XR2(config)#do ping ipv4 11.11.11.11 Sat Jun 3 14:51:45.579 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 11.11.11.11, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Alhamdulillah lab pertama kita tentang IOS XR sudah jalan.. sampai disini dulu ya.. sampai jumpa di artikel selanjutnya, In Syaa Allah masih akan tentang IOS XR..
Tidak ada komentar:
Posting Komentar
Komentar