Rabu, 07 Juni 2017

Lab 145 - IOS XR IBGP Route Reflector

Sebelumnya kita telah belajar tentang IGP di IOS XR,,. yaitu OSPF dan EIGRP.. selanjutnya pada lab ini kita akan belajar tentang EGP,, yaitu BGP..

Kita akan ngelab IBGP dengan menggunakan Route Reflector.. berikut topologi yang akan kita gunakan
Perhatikan masing-masing router mempunyai dua IP Loopback.. nantinya interface loopback0 pada masing-masing router akan kita advertise ke OSPF.. selanjutnya interface loopback1 pada masing-masing router akan kita advertise ke IBGP..

Oke langsung saja, Diasumsikan kita sudah konfigurasi OSPF ya.. nanti hasilnya harus nya seperti ini..
RP/0/0/CPU0:IOS-XR1(config-ospf-ar-if)#do sh route ospf Mon Jun 5 01:24:16.743 UTC O 2.2.2.2/32 [110/2] via 12.12.12.2, 00:02:03, GigabitEthernet0/0/0/0 O 3.3.3.3/32 [110/3] via 12.12.12.2, 00:00:59, GigabitEthernet0/0/0/0 O 4.4.4.4/32 [110/4] via 12.12.12.2, 00:00:06, GigabitEthernet0/0/0/0 O 23.23.23.0/24 [110/2] via 12.12.12.2, 00:02:03, GigabitEthernet0/0/0/0 O 34.34.34.0/24 [110/3] via 12.12.12.2, 00:00:59, GigabitEthernet0/0/0/0
RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#do sh route ospf Mon Jun 5 01:24:41.661 UTC O 1.1.1.1/32 [110/2] via 12.12.12.1, 00:02:27, GigabitEthernet0/0/0/0 O 3.3.3.3/32 [110/2] via 23.23.23.3, 00:01:28, GigabitEthernet0/0/0/1 O 4.4.4.4/32 [110/3] via 23.23.23.3, 00:00:30, GigabitEthernet0/0/0/1 O 34.34.34.0/24 [110/2] via 23.23.23.3, 00:01:28, GigabitEthernet0/0/0/1
RP/0/0/CPU0:IOS-XR3(config-ospf-ar-if)#do sh route ospf Mon Jun 5 01:24:57.810 UTC O 1.1.1.1/32 [110/3] via 23.23.23.2, 00:01:44, GigabitEthernet0/0/0/0 O 2.2.2.2/32 [110/2] via 23.23.23.2, 00:01:44, GigabitEthernet0/0/0/0 O 4.4.4.4/32 [110/2] via 34.34.34.4, 00:00:52, GigabitEthernet0/0/0/1 O 12.12.12.0/24 [110/2] via 23.23.23.2, 00:01:44, GigabitEthernet0/0/0/0
RP/0/0/CPU0:IOS-XR4(config-ospf-ar-if)#do sh route ospf Mon Jun 5 01:25:11.609 UTC O 1.1.1.1/32 [110/4] via 34.34.34.3, 00:01:06, GigabitEthernet0/0/0/0 O 2.2.2.2/32 [110/3] via 34.34.34.3, 00:01:06, GigabitEthernet0/0/0/0 O 3.3.3.3/32 [110/2] via 34.34.34.3, 00:01:06, GigabitEthernet0/0/0/0 O 12.12.12.0/24 [110/3] via 34.34.34.3, 00:01:06, GigabitEthernet0/0/0/0 O 23.23.23.0/24 [110/2] via 34.34.34.3, 00:01:06, GigabitEthernet0/0/0/0
Kalau masih ada yang belum bisa konfigurasi OSPF di IOS XR, bisa merujuk ke artikel berikut ya : Konfigurasi OSPF di IOS XR

Oke.. setelah konfigurasi OSPF selesai.. pastikan masing-masing router bisa ping ke loopback0 dari router lain ya.. kita coba ping dari IOS-XR1 ke loopback0 IOS-XR2-4
RP/0/0/CPU0:IOS-XR1(config-ospf-ar-if)#do ping 2.2.2.2 Mon Jun 5 01:26:51.382 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(config-ospf-ar-if)#do ping 3.3.3.3 Mon Jun 5 01:26:53.402 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(config-ospf-ar-if)#do ping 4.4.4.4 Mon Jun 5 01:26:55.782 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/9 ms
Oke sudah jalan semua ya.. sekarang saatnya kita mengkonfigurasi IBGP... pada topologi ini IOS-XR4 akan menjadi Route Reflector ya.. jadi nanti IOS-XR1, 2, dan 3 hanya perlua peering ke IOS-XR4..

Oke langsung saja.. berikut konfigurasi di IOS-XR1
RP/0/0/CPU0:IOS-XR1(config)#router bgp 1234 RP/0/0/CPU0:IOS-XR1(config-bgp)#address-family ipv4 unicast RP/0/0/CPU0:IOS-XR1(config-bgp-af)#network 11.11.11.11/32 RP/0/0/CPU0:IOS-XR1(config-bgp-af)#exit RP/0/0/CPU0:IOS-XR1(config-bgp)#nei 4.4.4.4 RP/0/0/CPU0:IOS-XR1(config-bgp-nbr)#remote-as 1234 RP/0/0/CPU0:IOS-XR1(config-bgp-nbr)#update-source lo0 RP/0/0/CPU0:IOS-XR1(config-bgp-nbr)#address-family ipv4 unicast RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#commit
Berikut konfigurasi di IOS-XR2
RP/0/0/CPU0:IOS-XR2(config-ospf-ar-if)#router bgp 1234 RP/0/0/CPU0:IOS-XR2(config-bgp)#address-family ipv4 unicast RP/0/0/CPU0:IOS-XR2(config-bgp-af)#net 22.22.22.22/32 RP/0/0/CPU0:IOS-XR2(config-bgp-af)#exit RP/0/0/CPU0:IOS-XR2(config-bgp)#nei 4.4.4.4 RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#remote-as 1234 RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#update-sou lo0 RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#address-family ipv4 unicast RP/0/0/CPU0:IOS-XR2(config-bgp-nbr-af)#commit
Berikut konfigurasi di IOS-XR3
RP/0/0/CPU0:IOS-XR3(config-ospf-ar-if)#router bgp 1234 RP/0/0/CPU0:IOS-XR3(config-bgp)#address-family ipv4 unicast RP/0/0/CPU0:IOS-XR3(config-bgp-af)#net 33.33.33.33/32 RP/0/0/CPU0:IOS-XR3(config-bgp-af)#exit RP/0/0/CPU0:IOS-XR3(config-bgp)#nei 4.4.4.4 RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#remote-as 1234 RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#update-sou lo0 RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#address-family ipv4 unicast RP/0/0/CPU0:IOS-XR3(config-bgp-nbr-af)#commit
Berikut konfigurasi di IOS-XR4.. pada IOS-XR4 ini kita akan konfiguruasi peering group ya.. karena IOS-XR4 harus peering ke 3 router.. kalau peering satu-satu kelamaan.. jadi lebih baik pake group aja
RP/0/0/CPU0:IOS-XR4(config)#router bgp 1234 RP/0/0/CPU0:IOS-XR4(config-bgp)#address-family ipv4 unicast RP/0/0/CPU0:IOS-XR4(config-bgp-af)#net 44.44.44.44/32 RP/0/0/CPU0:IOS-XR4(config-bgp-af)#exit RP/0/0/CPU0:IOS-XR4(config-bgp)#neighbor-group IBGP RP/0/0/CPU0:IOS-XR4(config-bgp-nbrgrp)#remote-as 1234 RP/0/0/CPU0:IOS-XR4(config-bgp-nbrgrp)#update-source lo0 RP/0/0/CPU0:IOS-XR4(config-bgp-nbrgrp)#address-family ipv4 unicast RP/0/0/CPU0:IOS-XR4(config-bgp-nbrgrp-af)#route-reflector-client RP/0/0/CPU0:IOS-XR4(config-bgp-nbrgrp-af)#exit RP/0/0/CPU0:IOS-XR4(config-bgp-nbrgrp)#exit RP/0/0/CPU0:IOS-XR4(config-bgp)#neigh 1.1.1.1 RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#use neighbor-group IBGP RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#nei 2.2.2.2 RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#use neighbor-group IBGP RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#nei 3.3.3.3 RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#use neighbor-group IBGP RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#commit
Oke untuk pengujian, kita bisa menggunakan perintah berikut
RP/0/0/CPU0:IOS-XR1(config-if)#do sh bgp sum Mon Jun 5 01:50:04.631 UTC BGP router identifier 1.1.1.1, local AS number 1234 BGP generic scan interval 60 secs Non-stop routing is enabled BGP table state: Active Table ID: 0xe0000000 RD version: 6 BGP main routing table version 6 BGP NSR Initial initsync version 2 (Not Reached) BGP NSR/ISSU Sync-Group versions 0/0 BGP scan interval 60 secs BGP is operating in STANDALONE mode. Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer Speaker 6 6 6 6 6 0 Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd 4.4.4.4 0 1234 9 5 6 0 0 00:01:21 3
Perhatikan bahwa IOS-XR1 sudah menerima 3 prefix dari IOS-XR4.. kita coba lihat prefix berapa saja yang dimaksud
RP/0/0/CPU0:IOS-XR1(config-if)#do sh bgp Mon Jun 5 01:51:25.296 UTC BGP router identifier 1.1.1.1, local AS number 1234 BGP generic scan interval 60 secs Non-stop routing is enabled BGP table state: Active Table ID: 0xe0000000 RD version: 6 BGP main routing table version 6 BGP NSR Initial initsync version 2 (Reached) BGP NSR/ISSU Sync-Group versions 0/0 BGP scan interval 60 secs Status codes: s suppressed, d damped, h history, * valid, > best i - internal, r RIB-failure, S stale, N Nexthop-discard Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 11.11.11.11/32 0.0.0.0 0 32768 i *>i22.22.22.22/32 2.2.2.2 0 100 0 i *>i33.33.33.33/32 3.3.3.3 0 100 0 i *>i44.44.44.44/32 4.4.4.4 0 100 0 i Processed 4 prefixes, 4 paths
Perhatikan bahwa IOS-XR1 sudah menerima prefix yang lengkap.. kita coba lihat yang di Route Reflector ya
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#do sh bgp sum Mon Jun 5 01:52:49.450 UTC BGP router identifier 4.4.4.4, local AS number 1234 BGP generic scan interval 60 secs Non-stop routing is enabled BGP table state: Active Table ID: 0xe0000000 RD version: 6 BGP main routing table version 6 BGP NSR Initial initsync version 2 (Reached) BGP NSR/ISSU Sync-Group versions 0/0 BGP scan interval 60 secs BGP is operating in STANDALONE mode. Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer Speaker 6 6 6 6 6 0 Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd 1.1.1.1 0 1234 8 12 6 0 0 00:04:06 1 2.2.2.2 0 1234 11 14 6 0 0 00:07:01 1 3.3.3.3 0 1234 11 15 6 0 0 00:07:03 1
Route Reflector peering dengan tiga router lainnya., dan menerima 1 prefix dari setiap router.. kita coba lihat prefix berapa saja yg diterima oleh IOS-XR4
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#do sh bgp Mon Jun 5 01:53:41.046 UTC BGP router identifier 4.4.4.4, local AS number 1234 BGP generic scan interval 60 secs Non-stop routing is enabled BGP table state: Active Table ID: 0xe0000000 RD version: 6 BGP main routing table version 6 BGP NSR Initial initsync version 2 (Reached) BGP NSR/ISSU Sync-Group versions 0/0 BGP scan interval 60 secs Status codes: s suppressed, d damped, h history, * valid, > best i - internal, r RIB-failure, S stale, N Nexthop-discard Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *>i11.11.11.11/32 1.1.1.1 0 100 0 i *>i22.22.22.22/32 2.2.2.2 0 100 0 i *>i33.33.33.33/32 3.3.3.3 0 100 0 i *> 44.44.44.44/32 0.0.0.0 0 32768 i Processed 4 prefixes, 4 paths
Oke lengkap ya...

Untuk pengujian selanjutnya kita bisa mencoba untuk melihat tabel routing.. berikut tabel routing di IOS-XR1
RP/0/0/CPU0:IOS-XR1(config-if)#do sh route bgp Mon Jun 5 01:54:26.033 UTC B 22.22.22.22/32 [200/0] via 2.2.2.2, 00:05:37 B 33.33.33.33/32 [200/0] via 3.3.3.3, 00:05:37 B 44.44.44.44/32 [200/0] via 4.4.4.4, 00:05:37
Berikut tabel routing di IOS-XR2
RP/0/0/CPU0:IOS-XR2#sh route bgp Mon Jun 5 01:54:59.551 UTC B 11.11.11.11/32 [200/0] via 1.1.1.1, 00:06:11 B 33.33.33.33/32 [200/0] via 3.3.3.3, 00:07:13 B 44.44.44.44/32 [200/0] via 4.4.4.4, 00:07:13
Berikut tabel routing BGP di IOS-XR3
RP/0/0/CPU0:IOS-XR3#sh route bgp Mon Jun 5 01:55:27.709 UTC B 11.11.11.11/32 [200/0] via 1.1.1.1, 00:06:39 B 22.22.22.22/32 [200/0] via 2.2.2.2, 00:07:41 B 44.44.44.44/32 [200/0] via 4.4.4.4, 00:07:41
Berikut tabel routing BGP di IOS-XR4
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#do sh route bgp Mon Jun 5 01:55:48.918 UTC B 11.11.11.11/32 [200/0] via 1.1.1.1, 00:07:00 B 22.22.22.22/32 [200/0] via 2.2.2.2, 00:08:02 B 33.33.33.33/32 [200/0] via 3.3.3.3, 00:08:02
Oke.. sudah lengkap semua kan ya...

Pengujain terahir, kita coba lakukan ping yaa.. Berikut percobaan ping dari IOS-XR1 ke loopback router lainnya
RP/0/0/CPU0:IOS-XR1(config-if)#do ping 22.22.22.22 sou l1 Mon Jun 5 01:56:32.855 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 RP/0/0/CPU0:IOS-XR1(config-if)#do ping 33.33.33.33 sou l1 Mon Jun 5 01:56:37.354 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/1/1 ms RP/0/0/CPU0:IOS-XR1(config-if)#do ping 44.44.44.44 sou l1 Mon Jun 5 01:56:41.684 UTC Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 44.44.44.44, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/9 ms
Oke jalan semua ya....

Alhamdulillah Lab IBGP pada IOS XR kita sudah selesai... In Syaa Allah selanjutnya kita masih akan membahas tentang IBGP pada IOS XR.. namun menggunakan Confederation.. Oke sampai ketemu di artikel selanjutnya yaaa

Like the Post? Do share with your Friends.

Tidak ada komentar:

Posting Komentar

Komentar

FeedBack

Jika Anda merasa terbantu dengan artikel dari Coretan Bocah IT, silahkan berlangganan GRATIS via email. Dengan begitu, Anda akan mendapat kiriman artikel setiap ada artikel baru yang terbit di Coretan Bocah IT

Masukkan Email :

IconIconIconFollow Me on Pinterest