Lab 146 – IOS XR IBGP Confederation

Pada lab sebelumnya kita telah belajar tentang IBGP Route Reflcetor pada IOS XR.. selanjutnya pada lab ini kita akan belajar tentang IBGP Confederation..

Berikut topologi yang akan kita gunakan

Pertama kita harus konfigurasi IP Address dan routing protocol IGP pada jaringan diatas.. pada lab ini kita akan menggunakan EIGRP yaaa.. jika ada yg belum bisa konfigurasi EIGRP di IOS XR bisa merujuk ke artikel berikut : Konfigurasi EIGRP di IOS XR..

Setelah konfigurasi EIGRP, hasilnya adalah sebagai berikut

RP/0/0/CPU0:IOS-XR1(config-eigrp-af-if)#do sh route eigrp
Wed Jun 7 06:47:34.279 UTC

D 2.2.2.2/32 [90/10752] via 12.12.12.2, 00:03:03, GigabitEthernet0/0/0/0
D 3.3.3.3/32 [90/15872] via 12.12.12.2, 00:01:12, GigabitEthernet0/0/0/0
D 4.4.4.4/32 [90/20992] via 12.12.12.2, 00:00:32, GigabitEthernet0/0/0/0
D 23.23.23.0/24 [90/15360] via 12.12.12.2, 00:03:03, GigabitEthernet0/0/0/0
D 34.34.34.0/24 [90/20480] via 12.12.12.2, 00:01:12, GigabitEthernet0/0/0/0
RP/0/0/CPU0:IOS-XR2(config-eigrp-af-if)#do sh route eigrp
Wed Jun 7 06:48:06.896 UTC

D 1.1.1.1/32 [90/10752] via 12.12.12.1, 00:03:17, GigabitEthernet0/0/0/0
D 3.3.3.3/32 [90/10752] via 23.23.23.3, 00:01:45, GigabitEthernet0/0/0/1
D 4.4.4.4/32 [90/15872] via 23.23.23.3, 00:01:05, GigabitEthernet0/0/0/1
D 34.34.34.0/24 [90/15360] via 23.23.23.3, 00:01:45, GigabitEthernet0/0/0/1
RP/0/0/CPU0:IOS-XR3(config-eigrp-af-if)#do sh route eigrp
Wed Jun 7 06:48:30.135 UTC

D 1.1.1.1/32 [90/15872] via 23.23.23.2, 00:01:54, GigabitEthernet0/0/0/0
D 2.2.2.2/32 [90/10752] via 23.23.23.2, 00:01:54, GigabitEthernet0/0/0/0
D 4.4.4.4/32 [90/10752] via 34.34.34.4, 00:01:29, GigabitEthernet0/0/0/1
D 12.12.12.0/24 [90/15360] via 23.23.23.2, 00:01:54, GigabitEthernet0/0/0/0
RP/0/0/CPU0:IOS-XR4(config-eigrp-af-if)#do sh route eigrp
Wed Jun 7 06:48:48.963 UTC

D 1.1.1.1/32 [90/20992] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0
D 2.2.2.2/32 [90/15872] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0
D 3.3.3.3/32 [90/10752] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0
D 12.12.12.0/24 [90/20480] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0
D 23.23.23.0/24 [90/15360] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0

Oke.. pastikan hasilnya sudah seperti itu ya.. pastikan juga masing-masing router sudah bisa ping ke loopback0 router lainnya.. berikut contoh ping dari IOS-XR1 ke loopback0 router lainnya

RP/0/0/CPU0:IOS-XR1(config-eigrp-af-if)#do ping ipv4 2.2.2.2
Wed Jun 7 06:51:23.093 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-eigrp-af-if)#do ping ipv4 3.3.3.3
Wed Jun 7 06:51:25.653 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-eigrp-af-if)#do ping ipv4 4.4.4.4
Wed Jun 7 06:51:30.342 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 kalu sudah berhasil seperti diatas, selanjutnya kita akan konfigurasi IBGP dengan confederation..

Perhatikan topologi diatas, IOS-XR1 dan IOS-XR2 menggunaakn AS confederation 12 sedangkan IOS-XR3 dan IOS-XR4 menggunakan AS confederation 34..

Berikut konfigurasi pada IOS-XR1

RP/0/0/CPU0:IOS-XR1(config)#router bgp 12
RP/0/0/CPU0:IOS-XR1(config-bgp)#bgp confederation identifier 12

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)#neighbor 2.2.2.2
RP/0/0/CPU0:IOS-XR1(config-bgp-nbr)#remote-as 12
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

Selanjutnya berikut konfigurasi pada IOS-XR2

RP/0/0/CPU0:IOS-XR2(config)#router bgp 12
RP/0/0/CPU0:IOS-XR2(config-bgp)#bgp confederation identifier 12
RP/0/0/CPU0:IOS-XR2(config-bgp)#bgp confederation peers 34

RP/0/0/CPU0:IOS-XR2(config-bgp)#address-family ipv4 unicast
RP/0/0/CPU0:IOS-XR2(config-bgp-af)#network 22.22.22.22/32
RP/0/0/CPU0:IOS-XR2(config-bgp-af)#exit

RP/0/0/CPU0:IOS-XR2(config-bgp)#neighbor 1.1.1.1
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#remote-as 12
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#update-source lo0
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#address-family ipv4 unicast

RP/0/0/CPU0:IOS-XR2(config-bgp-nbr-af)#neighbor 3.3.3.3
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#remote-as 34
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#update-source 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

Perhatikan bahwa pada IOS-XR2 kita perlu mengkonfigurisakan ebgp-multihop saat neighbor 3.3.3.3.. ini dikarenakan IOS-XR2 menganggap IOS-XR3 seolah-olah adalah external AS.. sedangkan untuk peering EBGP nilai ttl nya adalah 1.. jadi kita harus memperbesar nilai ttl menggunakan perintah ebgp-multihop ini..

Selanjutnya berikut konfigurasi di IOS-XR3

RP/0/0/CPU0:IOS-XR3(config)#router bgp 34
RP/0/0/CPU0:IOS-XR3(config-bgp)#bgp confederation identifier 1234
RP/0/0/CPU0:IOS-XR3(config-bgp)#bgp confederation peers 12

RP/0/0/CPU0:IOS-XR3(config-bgp)#address-family ipv4 unicast
RP/0/0/CPU0:IOS-XR3(config-bgp-af)#network 33.33.33.33/32
RP/0/0/CPU0:IOS-XR3(config-bgp-af)#exit

RP/0/0/CPU0:IOS-XR3(config-bgp)#neighbor 2.2.2.2
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#remote-as 12
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#update-source lo0
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#address-family ipv4 unicast

RP/0/0/CPU0:IOS-XR3(config-bgp-nbr-af)#neighbor 4.4.4.4
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#remote-as 34
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#update-source 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

Perhatikan bahwa kita juga perlu mengkonfigurasikan ebgp-multihop pada IOS-XR3

Yang terahir, berikut konfigurasi pada IOS-XR4

RP/0/0/CPU0:IOS-XR4(config)#router bgp 34
RP/0/0/CPU0:IOS-XR4(config-bgp)#bgp confederation identifier 1234

RP/0/0/CPU0:IOS-XR4(config-bgp)#address-family ipv4 unicast
RP/0/0/CPU0:IOS-XR4(config-bgp-af)#network 44.44.44.44/32
RP/0/0/CPU0:IOS-XR4(config-bgp-af)#exit

RP/0/0/CPU0:IOS-XR4(config-bgp)#neighbor 3.3.3.3
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#remote-as 34
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#update-source lo0
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#address-family ipv4 unicast

RP/0/0/CPU0:IOS-XR4(config-bgp-nbr-af)#commit

Oke.. konfigurasi sudah selesai.. Untuk pengujian,, pastikan IOS-XR1 menerima network dari IOS-XR2, IOS-XR3, dan IOS-XR4

RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#do sh bgp
Wed Jun 7 07:31:04.430 UTC
BGP router identifier 1.1.1.1, local AS number 12
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 (34) i
*>i44.44.44.44/32 4.4.4.4 0 100 0 (34) i

Processed 4 prefixes, 4 paths

Oke sudah berhasil ya.. untuk lebih memastikan, kita coba lihat tabel routing di IOS-XR1

RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#do sh route bgp
Wed Jun 7 07:31:43.497 UTC

B 22.22.22.22/32 [200/0] via 2.2.2.2, 00:11:32
B 33.33.33.33/32 [200/0] via 3.3.3.3, 00:09:05
B 44.44.44.44/32 [200/0] via 4.4.4.4, 00:08:35

Oke sudah lengkap… sekarang kita coba lakukan ping yaa

RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#do ping 22.22.22.22 sou l1
Wed Jun 7 07:32:10.695 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-bgp-nbr-af)#do ping 33.33.33.33 sou l1
Wed Jun 7 07:32:14.505 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/2/9 ms
RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#do ping 44.44.44.44 sou l1
Wed Jun 7 07:32:18.435 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 sudah berhasil yaaa… Sampai saat ini kita sudah selesai dan berhasil melakukan konfigurasi IBGP confederation pada IOS XR.. sampai jumpa di artikel selanjutnya yaa…. In Syaa Allah masih akan membahas seputar IOS XR..

Lab 146 – IOS XR IBGP Confederation

Pada lab sebelumnya kita telah belajar tentang IBGP Route Reflcetor pada IOS XR.. selanjutnya pada lab ini kita akan belajar tentang IBGP Confederation..

Berikut topologi yang akan kita gunakan

Pertama kita harus konfigurasi IP Address dan routing protocol IGP pada jaringan diatas.. pada lab ini kita akan menggunakan EIGRP yaaa.. jika ada yg belum bisa konfigurasi EIGRP di IOS XR bisa merujuk ke artikel berikut : Konfigurasi EIGRP di IOS XR..

Setelah konfigurasi EIGRP, hasilnya adalah sebagai berikut

RP/0/0/CPU0:IOS-XR1(config-eigrp-af-if)#do sh route eigrp
Wed Jun 7 06:47:34.279 UTC

D 2.2.2.2/32 [90/10752] via 12.12.12.2, 00:03:03, GigabitEthernet0/0/0/0
D 3.3.3.3/32 [90/15872] via 12.12.12.2, 00:01:12, GigabitEthernet0/0/0/0
D 4.4.4.4/32 [90/20992] via 12.12.12.2, 00:00:32, GigabitEthernet0/0/0/0
D 23.23.23.0/24 [90/15360] via 12.12.12.2, 00:03:03, GigabitEthernet0/0/0/0
D 34.34.34.0/24 [90/20480] via 12.12.12.2, 00:01:12, GigabitEthernet0/0/0/0
RP/0/0/CPU0:IOS-XR2(config-eigrp-af-if)#do sh route eigrp
Wed Jun 7 06:48:06.896 UTC

D 1.1.1.1/32 [90/10752] via 12.12.12.1, 00:03:17, GigabitEthernet0/0/0/0
D 3.3.3.3/32 [90/10752] via 23.23.23.3, 00:01:45, GigabitEthernet0/0/0/1
D 4.4.4.4/32 [90/15872] via 23.23.23.3, 00:01:05, GigabitEthernet0/0/0/1
D 34.34.34.0/24 [90/15360] via 23.23.23.3, 00:01:45, GigabitEthernet0/0/0/1
RP/0/0/CPU0:IOS-XR3(config-eigrp-af-if)#do sh route eigrp
Wed Jun 7 06:48:30.135 UTC

D 1.1.1.1/32 [90/15872] via 23.23.23.2, 00:01:54, GigabitEthernet0/0/0/0
D 2.2.2.2/32 [90/10752] via 23.23.23.2, 00:01:54, GigabitEthernet0/0/0/0
D 4.4.4.4/32 [90/10752] via 34.34.34.4, 00:01:29, GigabitEthernet0/0/0/1
D 12.12.12.0/24 [90/15360] via 23.23.23.2, 00:01:54, GigabitEthernet0/0/0/0
RP/0/0/CPU0:IOS-XR4(config-eigrp-af-if)#do sh route eigrp
Wed Jun 7 06:48:48.963 UTC

D 1.1.1.1/32 [90/20992] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0
D 2.2.2.2/32 [90/15872] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0
D 3.3.3.3/32 [90/10752] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0
D 12.12.12.0/24 [90/20480] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0
D 23.23.23.0/24 [90/15360] via 34.34.34.3, 00:01:29, GigabitEthernet0/0/0/0

Oke.. pastikan hasilnya sudah seperti itu ya.. pastikan juga masing-masing router sudah bisa ping ke loopback0 router lainnya.. berikut contoh ping dari IOS-XR1 ke loopback0 router lainnya

RP/0/0/CPU0:IOS-XR1(config-eigrp-af-if)#do ping ipv4 2.2.2.2
Wed Jun 7 06:51:23.093 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-eigrp-af-if)#do ping ipv4 3.3.3.3
Wed Jun 7 06:51:25.653 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-eigrp-af-if)#do ping ipv4 4.4.4.4
Wed Jun 7 06:51:30.342 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 kalu sudah berhasil seperti diatas, selanjutnya kita akan konfigurasi IBGP dengan confederation..

Perhatikan topologi diatas, IOS-XR1 dan IOS-XR2 menggunaakn AS confederation 12 sedangkan IOS-XR3 dan IOS-XR4 menggunakan AS confederation 34..

Berikut konfigurasi pada IOS-XR1

RP/0/0/CPU0:IOS-XR1(config)#router bgp 12
RP/0/0/CPU0:IOS-XR1(config-bgp)#bgp confederation identifier 12

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)#neighbor 2.2.2.2
RP/0/0/CPU0:IOS-XR1(config-bgp-nbr)#remote-as 12
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

Selanjutnya berikut konfigurasi pada IOS-XR2

RP/0/0/CPU0:IOS-XR2(config)#router bgp 12
RP/0/0/CPU0:IOS-XR2(config-bgp)#bgp confederation identifier 12
RP/0/0/CPU0:IOS-XR2(config-bgp)#bgp confederation peers 34

RP/0/0/CPU0:IOS-XR2(config-bgp)#address-family ipv4 unicast
RP/0/0/CPU0:IOS-XR2(config-bgp-af)#network 22.22.22.22/32
RP/0/0/CPU0:IOS-XR2(config-bgp-af)#exit

RP/0/0/CPU0:IOS-XR2(config-bgp)#neighbor 1.1.1.1
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#remote-as 12
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#update-source lo0
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#address-family ipv4 unicast

RP/0/0/CPU0:IOS-XR2(config-bgp-nbr-af)#neighbor 3.3.3.3
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#remote-as 34
RP/0/0/CPU0:IOS-XR2(config-bgp-nbr)#update-source 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

Perhatikan bahwa pada IOS-XR2 kita perlu mengkonfigurisakan ebgp-multihop saat neighbor 3.3.3.3.. ini dikarenakan IOS-XR2 menganggap IOS-XR3 seolah-olah adalah external AS.. sedangkan untuk peering EBGP nilai ttl nya adalah 1.. jadi kita harus memperbesar nilai ttl menggunakan perintah ebgp-multihop ini..

Selanjutnya berikut konfigurasi di IOS-XR3

RP/0/0/CPU0:IOS-XR3(config)#router bgp 34
RP/0/0/CPU0:IOS-XR3(config-bgp)#bgp confederation identifier 1234
RP/0/0/CPU0:IOS-XR3(config-bgp)#bgp confederation peers 12

RP/0/0/CPU0:IOS-XR3(config-bgp)#address-family ipv4 unicast
RP/0/0/CPU0:IOS-XR3(config-bgp-af)#network 33.33.33.33/32
RP/0/0/CPU0:IOS-XR3(config-bgp-af)#exit

RP/0/0/CPU0:IOS-XR3(config-bgp)#neighbor 2.2.2.2
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#remote-as 12
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#update-source lo0
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#address-family ipv4 unicast

RP/0/0/CPU0:IOS-XR3(config-bgp-nbr-af)#neighbor 4.4.4.4
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#remote-as 34
RP/0/0/CPU0:IOS-XR3(config-bgp-nbr)#update-source 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

Perhatikan bahwa kita juga perlu mengkonfigurasikan ebgp-multihop pada IOS-XR3

Yang terahir, berikut konfigurasi pada IOS-XR4

RP/0/0/CPU0:IOS-XR4(config)#router bgp 34
RP/0/0/CPU0:IOS-XR4(config-bgp)#bgp confederation identifier 1234

RP/0/0/CPU0:IOS-XR4(config-bgp)#address-family ipv4 unicast
RP/0/0/CPU0:IOS-XR4(config-bgp-af)#network 44.44.44.44/32
RP/0/0/CPU0:IOS-XR4(config-bgp-af)#exit

RP/0/0/CPU0:IOS-XR4(config-bgp)#neighbor 3.3.3.3
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#remote-as 34
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#update-source lo0
RP/0/0/CPU0:IOS-XR4(config-bgp-nbr)#address-family ipv4 unicast

RP/0/0/CPU0:IOS-XR4(config-bgp-nbr-af)#commit

Oke.. konfigurasi sudah selesai.. Untuk pengujian,, pastikan IOS-XR1 menerima network dari IOS-XR2, IOS-XR3, dan IOS-XR4

RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#do sh bgp
Wed Jun 7 07:31:04.430 UTC
BGP router identifier 1.1.1.1, local AS number 12
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 (34) i
*>i44.44.44.44/32 4.4.4.4 0 100 0 (34) i

Processed 4 prefixes, 4 paths

Oke sudah berhasil ya.. untuk lebih memastikan, kita coba lihat tabel routing di IOS-XR1

RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#do sh route bgp
Wed Jun 7 07:31:43.497 UTC

B 22.22.22.22/32 [200/0] via 2.2.2.2, 00:11:32
B 33.33.33.33/32 [200/0] via 3.3.3.3, 00:09:05
B 44.44.44.44/32 [200/0] via 4.4.4.4, 00:08:35

Oke sudah lengkap… sekarang kita coba lakukan ping yaa

RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#do ping 22.22.22.22 sou l1
Wed Jun 7 07:32:10.695 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-bgp-nbr-af)#do ping 33.33.33.33 sou l1
Wed Jun 7 07:32:14.505 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/2/9 ms
RP/0/0/CPU0:IOS-XR1(config-bgp-nbr-af)#do ping 44.44.44.44 sou l1
Wed Jun 7 07:32:18.435 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 sudah berhasil yaaa… Sampai saat ini kita sudah selesai dan berhasil melakukan konfigurasi IBGP confederation pada IOS XR.. sampai jumpa di artikel selanjutnya yaa…. In Syaa Allah masih akan membahas seputar IOS XR..

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

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

Lab BGP iBGP Peering Mikrotik

BGP merupakan salah satu Routing Protokol pada jaringan komputer yang berguna untuk mendistribusikan informasi jaringan/routing dari satu Router ke Router yang lain. BGP termasuk dalam jenis EGP (Exterior Gateway Protocol) yang artinya BGP dapat mengirimkan informasi dari satu Router ke Router lain yang berbeda AS (ISP), biasanya ISP menggunakan BGP untuk menghubungkan jaringannya dengan ISP lainnya.

Dalam BGP terdapat dua jenis peering atau hubungan antar Router, yaitu :

  • internal BGP. Yaitu hubungan antar Router yang masih dalam satu AS yang sama atau ISP yang sama.
  • external BGP. Yaitu hubungan antar Router yang berbeda AS.
Kali ini saya akan membahas cara konfigurasi internal BGP peering berdasarkan topologi dibawah ini :

Topologi

Dari topologi diatas kita akan menghubungkan dua Router menggunakan iBGP, keduanya memiliki nomor AS yang sama yaitu 100, tujuan dari menghubungkan dua Router ini adalah agar network (loopback) yang ada dimasing masing Router dapat terhubung (lo0 R1 dengan lo0 R2).

Konfigurasi

Kita akan lakukan langkah langkah konfigurasi topologi diatas. Berikut ini adalah langkah-langkahnya :

IP Address

Yang paling pertama adalah konfigurasi dasar seperti konfigurasi IP Address dan Interface loopback disetiap Router, Interface loopback kali ini kita ibaratkan seperti jaringan lokal yang terhubung dengan masing-masing Router, nantinya kita akan buat agar antar Interface loopback tersebut dapat saling berkomunikasi.

Router R1

[admin@R1] > interface bridge add name=lo0
[admin@R1] > ip address add address=12.12.12.1/24 interface=ether1
[admin@R1] > ip address add address=1.1.1.1/32 interface=lo0

Router R2

[admin@R2] > interface bridge add name=lo0
[admin@R2] > ip address add address=12.12.12.2/24 interface=ether1
[admin@R2] > ip address add address=2.2.2.2/32 interface=lo0

Konfigurasi BGP

Setelah konfigurasi dasar selesai, kita lanjutkan konfigurasi BGP seperti mengatur nomor AS dari Router dan juga peering antar Router. Kita konfigurasi peering bgp agar antar Router saling mengenal dan sebagai jalur Advertise network yang dimiliki masing-masing Router.

Router R1

[admin@R1] > routing bgp instance set default as=100 
[admin@R1] > routing bgp peer add remote-address=12.12.12.2 remote-as=100 name=R2-Peer

Router R2

[admin@R2] > routing bgp instance set default as=100
[admin@R2] > routing bgp peer add remote-address=12.12.12.1 remote-as=100 name=R1-Peer

Setelah itu kemudian kita cek status dari peering nya, pastikan sudah Established :

[admin@R1] > routing bgp peer print 
Flags: X - disabled, E - established
# INSTANCE REMOTE-ADDRESS REMOTE-AS
0 E default 12.12.12.2 100

Jika sudah established maka kita lanjut ke konfigurasi selanjutnya yaitu Advertise network masing-masing Router, Agar network antar Router dapat saling mengenali dan terhubung.

Router R1

[admin@R1] > routing bgp network add network=1.1.1.1/32

Router R2

[admin@R2] > routing bgp network add network=2.2.2.2/32

Setelah itu kita cek Routing table masing-masing Router apakah network Router lawan sudah masuk dalam routing table masing-masing Router.

[admin@R1] > ip route print where bgp
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 ADb 2.2.2.2/32 12.12.12.2 200
[admin@R2] > ip route print where bgp
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 ADb 1.1.1.1/32 12.12.12.1 200

Kita bisa lihat bahwa informasi network sudah masuk kedalam routing table masing-masing router beserta informasi gateway dan juga distance nya (iBGP = 200). Setelah sudah selesai maka sampai disini konfigurasi sudah dinyatakan berhasil.

Referensi

  • MTCINE Bootcamp
  • Internet

Lab BGP iBGP Peering Mikrotik

BGP merupakan salah satu Routing Protokol pada jaringan komputer yang berguna untuk mendistribusikan informasi jaringan/routing dari satu Router ke Router yang lain. BGP termasuk dalam jenis EGP (Exterior Gateway Protocol) yang artinya BGP dapat mengirimkan informasi dari satu Router ke Router lain yang berbeda AS (ISP), biasanya ISP menggunakan BGP untuk menghubungkan jaringannya dengan ISP lainnya.

Dalam BGP terdapat dua jenis peering atau hubungan antar Router, yaitu :

  • internal BGP. Yaitu hubungan antar Router yang masih dalam satu AS yang sama atau ISP yang sama.
  • external BGP. Yaitu hubungan antar Router yang berbeda AS.
Kali ini saya akan membahas cara konfigurasi internal BGP peering berdasarkan topologi dibawah ini :

Topologi

Dari topologi diatas kita akan menghubungkan dua Router menggunakan iBGP, keduanya memiliki nomor AS yang sama yaitu 100, tujuan dari menghubungkan dua Router ini adalah agar network (loopback) yang ada dimasing masing Router dapat terhubung (lo0 R1 dengan lo0 R2).

Konfigurasi

Kita akan lakukan langkah langkah konfigurasi topologi diatas. Berikut ini adalah langkah-langkahnya :

IP Address

Yang paling pertama adalah konfigurasi dasar seperti konfigurasi IP Address dan Interface loopback disetiap Router, Interface loopback kali ini kita ibaratkan seperti jaringan lokal yang terhubung dengan masing-masing Router, nantinya kita akan buat agar antar Interface loopback tersebut dapat saling berkomunikasi.

Router R1

[admin@R1] > interface bridge add name=lo0
[admin@R1] > ip address add address=12.12.12.1/24 interface=ether1
[admin@R1] > ip address add address=1.1.1.1/32 interface=lo0

Router R2

[admin@R2] > interface bridge add name=lo0
[admin@R2] > ip address add address=12.12.12.2/24 interface=ether1
[admin@R2] > ip address add address=2.2.2.2/32 interface=lo0

Konfigurasi BGP

Setelah konfigurasi dasar selesai, kita lanjutkan konfigurasi BGP seperti mengatur nomor AS dari Router dan juga peering antar Router. Kita konfigurasi peering bgp agar antar Router saling mengenal dan sebagai jalur Advertise network yang dimiliki masing-masing Router.

Router R1

[admin@R1] > routing bgp instance set default as=100 
[admin@R1] > routing bgp peer add remote-address=12.12.12.2 remote-as=100 name=R2-Peer

Router R2

[admin@R2] > routing bgp instance set default as=100
[admin@R2] > routing bgp peer add remote-address=12.12.12.1 remote-as=100 name=R1-Peer

Setelah itu kemudian kita cek status dari peering nya, pastikan sudah Established :

[admin@R1] > routing bgp peer print 
Flags: X - disabled, E - established
# INSTANCE REMOTE-ADDRESS REMOTE-AS
0 E default 12.12.12.2 100

Jika sudah established maka kita lanjut ke konfigurasi selanjutnya yaitu Advertise network masing-masing Router, Agar network antar Router dapat saling mengenali dan terhubung.

Router R1

[admin@R1] > routing bgp network add network=1.1.1.1/32

Router R2

[admin@R2] > routing bgp network add network=2.2.2.2/32

Setelah itu kita cek Routing table masing-masing Router apakah network Router lawan sudah masuk dalam routing table masing-masing Router.

[admin@R1] > ip route print where bgp
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 ADb 2.2.2.2/32 12.12.12.2 200
[admin@R2] > ip route print where bgp
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 ADb 1.1.1.1/32 12.12.12.1 200

Kita bisa lihat bahwa informasi network sudah masuk kedalam routing table masing-masing router beserta informasi gateway dan juga distance nya (iBGP = 200). Setelah sudah selesai maka sampai disini konfigurasi sudah dinyatakan berhasil.

Referensi

  • MTCINE Bootcamp
  • Internet

Lab 134 – Superlab L3VPN Cisco (Bagian 4 Konfigurasi BGP)

Pada pembahasan sebelumnya kita sudah selesai dan berhasil mengkonfigurasi MPLS pada jaringan ISP.. selanjutnya pada postingan kali ini kita akan membahas konfigurasi IBGP antar router PE yaa..

Oke langsung saja kita konfigurasikan IBGP yaa.. ingat bahwa kita hanya akan melakukan konfigurasi IBGP pada router PE yaa

R2(config)#router bgp 10
R2(config-router)#neighbor PE peer-group
R2(config-router)#nei PE remote-as 10
R2(config-router)#neighbor PE update-source lo0
R2(config-router)#nei 5.5.5.5 peer-group PE
R2(config-router)#nei 6.6.6.6 peer-group PE
R2(config-router)#nei 7.7.7.7 peer-group PE
R2(config-router)#nei 8.8.8.8 peer-group PE

R2(config-router)#address-family vpnv4
R2(config-router-af)#neighbor 5.5.5.5 activate
R2(config-router-af)#neighbor 6.6.6.6 activate
R2(config-router-af)#neighbor 7.7.7.7 activate
R2(config-router-af)#neighbor 8.8.8.8 activate
R5(config)#router bgp 10
R5(config-router)#nei PE pee
R5(config-router)#nei PE peer-group
R5(config-router)#nei PE remote-as 10
R5(config-router)#nei PE update-sou lo0
R5(config-router)#nei 2.2.2.2 peer-group PE
R5(config-router)#nei 6.6.6.6 peer-group PE
R5(config-router)#nei 7.7.7.7 peer-group PE
R5(config-router)#nei 8.8.8.8 peer-group PE

R5(config-router)#address-family vpnv4
R5(config-router-af)#nei 2.2.2.2 activate
R5(config-router-af)#nei 5.5.5.5 activate
R5(config-router-af)#nei 6.6.6.6 activate
R5(config-router-af)#nei 7.7.7.7 activate
R5(config-router-af)#nei 8.8.8.8 activate
R6(config)#router bgp 10
R6(config-router)#nei PE pee
R6(config-router)#nei PE peer-group
R6(config-router)#nei PE remote-as 10
R6(config-router)#nei PE update-sou lo0
R6(config-router)#nei 2.2.2.2 peer-group PE
R6(config-router)#nei 5.5.5.5 peer-group PE
R6(config-router)#nei 7.7.7.7 peer-group PE
R6(config-router)#nei 8.8.8.8 peer-group PE

R6(config-router)#address-family vpnv4
R6(config-router-af)#nei 2.2.2.2 activate
R6(config-router-af)#nei 5.5.5.5 activate
R6(config-router-af)#nei 7.7.7.7 activate
R6(config-router-af)#nei 8.8.8.8 activate
R7(config)#router bgp 10
R7(config-router)#nei PE pee
R7(config-router)#nei PE peer-group
R7(config-router)#nei PE remote-as 10
R7(config-router)#nei PE update-sou lo0
R7(config-router)#nei 2.2.2.2 peer-group PE
R7(config-router)#nei 5.5.5.5 peer-group PE
R7(config-router)#nei 6.6.6.6 peer-group PE
R7(config-router)#nei 8.8.8.8 peer-group PE

R7(config-router)#address-family vpnv4
R7(config-router-af)#nei 2.2.2.2 activate
R7(config-router-af)#nei 5.5.5.5 activate
R7(config-router-af)#nei 6.6.6.6 activate
R7(config-router-af)#nei 8.8.8.8 activate
R8(config)#router bgp 10
R8(config-router)#nei PE pee
R8(config-router)#nei PE peer-group
R8(config-router)#nei PE remote-as 10
R8(config-router)#nei PE update-sou lo0
R8(config-router)#nei 2.2.2.2 peer-group PE
R8(config-router)#nei 5.5.5.5 peer-group PE
R8(config-router)#nei 6.6.6.6 peer-group PE
R8(config-router)#nei 7.7.7.7 peer-group PE

R8(config-router)#address-family vpnv4
R8(config-router-af)#nei 2.2.2.2 activate
R8(config-router-af)#nei 5.5.5.5 activate
R8(config-router-af)#nei 6.6.6.6 activate
R8(config-router-af)#nei 7.7.7.7 activate

Oke sampai saat ini kita sudah selesai konfigurasi IBGP pada seluruh router PE.. untuk pengujian kita bisa menggunakan perintah berikut

R2(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 2.2.2.2, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
5.5.5.5 4 10 10 10 1 0 0 00:05:51 0
6.6.6.6 4 10 8 7 1 0 0 00:05:17 0
7.7.7.7 4 10 6 5 1 0 0 00:03:02 0
8.8.8.8 4 10 2 2 1 0 0 00:00:12 0

Pastikan bahwa setiap router PE sudah bertetangga dengan keempat router PE lainnya..

R5(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 5.5.5.5, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 10 11 11 1 0 0 00:06:56 0
6.6.6.6 4 10 9 8 1 0 0 00:06:19 0
7.7.7.7 4 10 7 6 1 0 0 00:04:05 0
8.8.8.8 4 10 4 3 1 0 0 00:01:12 0
R6(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 6.6.6.6, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 10 9 9 1 0 0 00:06:40 0
5.5.5.5 4 10 9 10 1 0 0 00:06:37 0
7.7.7.7 4 10 7 6 1 0 0 00:04:21 0
8.8.8.8 4 10 4 3 1 0 0 00:01:28 0
R7(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 7.7.7.7, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 10 7 7 1 0 0 00:04:41 0
5.5.5.5 4 10 7 7 1 0 0 00:04:39 0
6.6.6.6 4 10 7 7 1 0 0 00:04:37 0
8.8.8.8 4 10 4 3 1 0 0 00:01:42 0
R8(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 8.8.8.8, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 10 4 5 1 0 0 00:02:06 0
5.5.5.5 4 10 4 5 1 0 0 00:02:01 0
6.6.6.6 4 10 4 5 1 0 0 00:01:59 0
7.7.7.7 4 10 3 4 1 0 0 00:01:57 0

Okeee.. kita sudah selesai dan berhasil.. karena sudah berhasil, artinya pertemuan kita akan berahir lagi yaa.. hehe.. tapi jangan hawatir.. kita akan segera ketemu lagi kog.. karena memang seri superlab ini belum berahir.. hehehe.. pada episode selanjutnya in syaa allah kita akan membahas konfigurasi PE dan CE.. oke sampai jumpa lagi yaa..!!

Lab 134 – Superlab L3VPN Cisco (Bagian 4 Konfigurasi BGP)

Pada pembahasan sebelumnya kita sudah selesai dan berhasil mengkonfigurasi MPLS pada jaringan ISP.. selanjutnya pada postingan kali ini kita akan membahas konfigurasi IBGP antar router PE yaa..

Oke langsung saja kita konfigurasikan IBGP yaa.. ingat bahwa kita hanya akan melakukan konfigurasi IBGP pada router PE yaa

R2(config)#router bgp 10
R2(config-router)#neighbor PE peer-group
R2(config-router)#nei PE remote-as 10
R2(config-router)#neighbor PE update-source lo0
R2(config-router)#nei 5.5.5.5 peer-group PE
R2(config-router)#nei 6.6.6.6 peer-group PE
R2(config-router)#nei 7.7.7.7 peer-group PE
R2(config-router)#nei 8.8.8.8 peer-group PE

R2(config-router)#address-family vpnv4
R2(config-router-af)#neighbor 5.5.5.5 activate
R2(config-router-af)#neighbor 6.6.6.6 activate
R2(config-router-af)#neighbor 7.7.7.7 activate
R2(config-router-af)#neighbor 8.8.8.8 activate
R5(config)#router bgp 10
R5(config-router)#nei PE pee
R5(config-router)#nei PE peer-group
R5(config-router)#nei PE remote-as 10
R5(config-router)#nei PE update-sou lo0
R5(config-router)#nei 2.2.2.2 peer-group PE
R5(config-router)#nei 6.6.6.6 peer-group PE
R5(config-router)#nei 7.7.7.7 peer-group PE
R5(config-router)#nei 8.8.8.8 peer-group PE

R5(config-router)#address-family vpnv4
R5(config-router-af)#nei 2.2.2.2 activate
R5(config-router-af)#nei 5.5.5.5 activate
R5(config-router-af)#nei 6.6.6.6 activate
R5(config-router-af)#nei 7.7.7.7 activate
R5(config-router-af)#nei 8.8.8.8 activate
R6(config)#router bgp 10
R6(config-router)#nei PE pee
R6(config-router)#nei PE peer-group
R6(config-router)#nei PE remote-as 10
R6(config-router)#nei PE update-sou lo0
R6(config-router)#nei 2.2.2.2 peer-group PE
R6(config-router)#nei 5.5.5.5 peer-group PE
R6(config-router)#nei 7.7.7.7 peer-group PE
R6(config-router)#nei 8.8.8.8 peer-group PE

R6(config-router)#address-family vpnv4
R6(config-router-af)#nei 2.2.2.2 activate
R6(config-router-af)#nei 5.5.5.5 activate
R6(config-router-af)#nei 7.7.7.7 activate
R6(config-router-af)#nei 8.8.8.8 activate
R7(config)#router bgp 10
R7(config-router)#nei PE pee
R7(config-router)#nei PE peer-group
R7(config-router)#nei PE remote-as 10
R7(config-router)#nei PE update-sou lo0
R7(config-router)#nei 2.2.2.2 peer-group PE
R7(config-router)#nei 5.5.5.5 peer-group PE
R7(config-router)#nei 6.6.6.6 peer-group PE
R7(config-router)#nei 8.8.8.8 peer-group PE

R7(config-router)#address-family vpnv4
R7(config-router-af)#nei 2.2.2.2 activate
R7(config-router-af)#nei 5.5.5.5 activate
R7(config-router-af)#nei 6.6.6.6 activate
R7(config-router-af)#nei 8.8.8.8 activate
R8(config)#router bgp 10
R8(config-router)#nei PE pee
R8(config-router)#nei PE peer-group
R8(config-router)#nei PE remote-as 10
R8(config-router)#nei PE update-sou lo0
R8(config-router)#nei 2.2.2.2 peer-group PE
R8(config-router)#nei 5.5.5.5 peer-group PE
R8(config-router)#nei 6.6.6.6 peer-group PE
R8(config-router)#nei 7.7.7.7 peer-group PE

R8(config-router)#address-family vpnv4
R8(config-router-af)#nei 2.2.2.2 activate
R8(config-router-af)#nei 5.5.5.5 activate
R8(config-router-af)#nei 6.6.6.6 activate
R8(config-router-af)#nei 7.7.7.7 activate

Oke sampai saat ini kita sudah selesai konfigurasi IBGP pada seluruh router PE.. untuk pengujian kita bisa menggunakan perintah berikut

R2(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 2.2.2.2, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
5.5.5.5 4 10 10 10 1 0 0 00:05:51 0
6.6.6.6 4 10 8 7 1 0 0 00:05:17 0
7.7.7.7 4 10 6 5 1 0 0 00:03:02 0
8.8.8.8 4 10 2 2 1 0 0 00:00:12 0

Pastikan bahwa setiap router PE sudah bertetangga dengan keempat router PE lainnya..

R5(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 5.5.5.5, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 10 11 11 1 0 0 00:06:56 0
6.6.6.6 4 10 9 8 1 0 0 00:06:19 0
7.7.7.7 4 10 7 6 1 0 0 00:04:05 0
8.8.8.8 4 10 4 3 1 0 0 00:01:12 0
R6(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 6.6.6.6, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 10 9 9 1 0 0 00:06:40 0
5.5.5.5 4 10 9 10 1 0 0 00:06:37 0
7.7.7.7 4 10 7 6 1 0 0 00:04:21 0
8.8.8.8 4 10 4 3 1 0 0 00:01:28 0
R7(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 7.7.7.7, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 10 7 7 1 0 0 00:04:41 0
5.5.5.5 4 10 7 7 1 0 0 00:04:39 0
6.6.6.6 4 10 7 7 1 0 0 00:04:37 0
8.8.8.8 4 10 4 3 1 0 0 00:01:42 0
R8(config-router-af)#do sh ip bgp vpnv4 all sum
BGP router identifier 8.8.8.8, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 10 4 5 1 0 0 00:02:06 0
5.5.5.5 4 10 4 5 1 0 0 00:02:01 0
6.6.6.6 4 10 4 5 1 0 0 00:01:59 0
7.7.7.7 4 10 3 4 1 0 0 00:01:57 0

Okeee.. kita sudah selesai dan berhasil.. karena sudah berhasil, artinya pertemuan kita akan berahir lagi yaa.. hehe.. tapi jangan hawatir.. kita akan segera ketemu lagi kog.. karena memang seri superlab ini belum berahir.. hehehe.. pada episode selanjutnya in syaa allah kita akan membahas konfigurasi PE dan CE.. oke sampai jumpa lagi yaa..!!

Konfigurasi BGP peering eBGP pada Cisco

Sebelumnya saya sudah membahas tentang peering iBGP atau hubungan neighbor/adjacencies antar Router BGP dalam satu AS yang sama. Sekarang saya akan membahas tentang peering eBGP yang merupakan kebalikan dari iBGP yaitu hubungan neighbor antar Router BGP antar AS yang berbeda, sesuai namanya eBGP (external BGP). Pada BGP tidak terdapat fitur Neighbor Discovery atau pencarian neighbor Router secara otomatis, itulah sebabnya sebelum dapat membagikan informasi Routing dengan BGP pertama harus melakukan peering antar Router secara manual.

Peering antar Router BGP yang berbeda AS ini ada beberapa aturan, berikut ini adalah beberapa yang saya ketahui :

  • Peering eBGP tidak perlu full mesh, karena Router BGP dapat meneruskan informasi dari satu Router ke Router lainnya yang berada di AS yang berbeda.
  • Untuk melakukan peering, antar Router yang ingin dihubungkan harus terhubung langsung atau Directly connected, karena secara default paket-paket yang dikirimkan dengan eBGP TTL nya hanya 1.
  • Setiap mengirimkan informasi pada Router yang berbeda AS, maka atribut atribut yang ada pada informasi tersebut akan diubah, tidak seperti iBGP yang tidak diubah atribut-atributnya.
Setelah saya membahas sedikit teori tentang eBGP sekarang saya akan menunjukan sintaks dan cara konfigurasinya pada Cisco :
  • Aktifkan BGP pada nomor AS tertentu.
  • Router(config)# router bgp [AS-Number]
  • Kemudian konfigurasi peering pada alamat IP Router tetangga.
  • Router(config-router)# neighbor [x.x.x.x] remote-as [AS-Number]
  • Dan konfigurasi network-network yang akan didistribusikan.
  • Router(config-router)# network [x.x.x.x] mask [m.m.m.m]

Setelah sintaks dan cara konfigurasi sekarang kita akan coba praktekan pada topologi dibawah ini.

Tiga Router diatas menggunakan BGP untuk menghubungkan satu sama lain, ketiganya berada di AS yang berbeda maka peering yang akan kita gunakan adalah eBGP. Kemudian antar Router tersebut akan mengirimkan informasi Routing satu sama lain.

Konfigurasi

Pertama kita lakukan konfigurasi mendasar pada masing-masing Router, yaitu konfigurasi IP Address pada tiap Interface Router.

    Router R1

    R1(config)#int e0/0
    R1(config-if)#ip add 12.12.12.1 255.255.255.0
    R1(config-if)#no sh
    R1(config-if)#exi
    R1(config)#int lo0
    R1(config-if)#ip add 1.1.1.1 255.255.255.255
    R1(config-if)#exi

    Router R2

    R2(config)#int e0/0
    R2(config-if)#ip add 12.12.12.2 255.255.255.0
    R2(config-if)#no sh
    R2(config-if)#exi
    R2(config)#int e0/1
    R2(config-if)#ip add 23.23.23.2 255.255.255.0
    R2(config-if)#no sh
    R2(config-if)#exi
    R2(config)#int lo0
    R2(config-if)#ip add 2.2.2.2 255.255.255.255
    R2(config-if)#exi

    Router R3

    R3(config)#int e0/0
    R3(config-if)#ip add 23.23.23.3 255.255.255.0
    R3(config-if)#no sh
    R3(config-if)#exi
    R3(config)#int lo0
    R3(config-if)#ip add 3.3.3.3 255.255.255.255
    R3(config-if)#exi

Setelah konfigurasi IP Address selesai sekarang kita lanjut konfigurasi BGP pada masing-masing Router.

    Router R1

    Pertama konfigurasi eBGP peering terlebih dahulu.

    R1(config)#router bgp 10
    R1(config-router)#neighbor 12.12.12.2 remote-as 20

    Barulah masukan network-network yang ingin didistribusikan.

    R1(config-router)#net 12.12.12.0 mask 255.255.255.0
    R1(config-router)#net 1.1.1.1 mask 255.255.255.255
    R1(config-router)#exi

    Router R2

    R2(config)#router bgp 20
    R2(config-router)#neighbor 12.12.12.1 remote-as 10
    R2(config-router)#neighbor 23.23.23.3 remote-as 30
    R2(config-router)#net 12.12.12.0 mask 255.255.255.0
    R2(config-router)#net 23.23.23.0 mask 255.255.255.0
    R2(config-router)#net 2.2.2.2 mask 255.255.255.255
    R2(config-router)#exi

    Router R3

    R3(config)#router bgp 30
    R3(config-router)#neighbor 23.23.23.2 remote-as 20
    R3(config-router)#net 23.23.23.0 mask 255.255.255.0
    R3(config-router)#net 3.3.3.3 mask 255.255.255.255
    R3(config-router)#exi

Konfirmasi

Setelah selesai konfigurasi, sekarang kita konfirmasi untuk melihat hasil dari konfigurasi yang kita lakukan, coba cek BGP Routing table pada salah satu Router.

R1#sh bgp
BGP table version is 6, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 2.2.2.2/32 12.12.12.2 0 0 20 i
*> 3.3.3.3/32 12.12.12.2 0 20 30 i
* 12.12.12.0/24 12.12.12.2 0 0 20 i
*> 0.0.0.0 0 32768 i
*> 23.23.23.0/24 12.12.12.2 0 0 20 i

Dan sekarang kita lihat pada main Routing table.

R1#sh ip ro
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override

Gateway of last resort is not set

1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [20/0] via 12.12.12.2, 00:06:27
3.0.0.0/32 is subnetted, 1 subnets
B 3.3.3.3 [20/0] via 12.12.12.2, 00:05:22
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.1/32 is directly connected, Ethernet0/0
23.0.0.0/24 is subnetted, 1 subnets
B 23.23.23.0 [20/0] via 12.12.12.2, 00:06:27

Kemudian lakukan PING pada interface loopback tiap Router.

R1#ping 2.2.2.2
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
R1#ping 3.3.3.3
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/1/1 ms

Konfigurasi BGP peering eBGP pada Cisco

Sebelumnya saya sudah membahas tentang peering iBGP atau hubungan neighbor/adjacencies antar Router BGP dalam satu AS yang sama. Sekarang saya akan membahas tentang peering eBGP yang merupakan kebalikan dari iBGP yaitu hubungan neighbor antar Router BGP antar AS yang berbeda, sesuai namanya eBGP (external BGP). Pada BGP tidak terdapat fitur Neighbor Discovery atau pencarian neighbor Router secara otomatis, itulah sebabnya sebelum dapat membagikan informasi Routing dengan BGP pertama harus melakukan peering antar Router secara manual.

Peering antar Router BGP yang berbeda AS ini ada beberapa aturan, berikut ini adalah beberapa yang saya ketahui :

  • Peering eBGP tidak perlu full mesh, karena Router BGP dapat meneruskan informasi dari satu Router ke Router lainnya yang berada di AS yang berbeda.
  • Untuk melakukan peering, antar Router yang ingin dihubungkan harus terhubung langsung atau Directly connected, karena secara default paket-paket yang dikirimkan dengan eBGP TTL nya hanya 1.
  • Setiap mengirimkan informasi pada Router yang berbeda AS, maka atribut atribut yang ada pada informasi tersebut akan diubah, tidak seperti iBGP yang tidak diubah atribut-atributnya.
Setelah saya membahas sedikit teori tentang eBGP sekarang saya akan menunjukan sintaks dan cara konfigurasinya pada Cisco :
  • Aktifkan BGP pada nomor AS tertentu.
  • Router(config)# router bgp [AS-Number]
  • Kemudian konfigurasi peering pada alamat IP Router tetangga.
  • Router(config-router)# neighbor [x.x.x.x] remote-as [AS-Number]
  • Dan konfigurasi network-network yang akan didistribusikan.
  • Router(config-router)# network [x.x.x.x] mask [m.m.m.m]

Setelah sintaks dan cara konfigurasi sekarang kita akan coba praktekan pada topologi dibawah ini.

Tiga Router diatas menggunakan BGP untuk menghubungkan satu sama lain, ketiganya berada di AS yang berbeda maka peering yang akan kita gunakan adalah eBGP. Kemudian antar Router tersebut akan mengirimkan informasi Routing satu sama lain.

Konfigurasi

Pertama kita lakukan konfigurasi mendasar pada masing-masing Router, yaitu konfigurasi IP Address pada tiap Interface Router.

    Router R1

    R1(config)#int e0/0
    R1(config-if)#ip add 12.12.12.1 255.255.255.0
    R1(config-if)#no sh
    R1(config-if)#exi
    R1(config)#int lo0
    R1(config-if)#ip add 1.1.1.1 255.255.255.255
    R1(config-if)#exi

    Router R2

    R2(config)#int e0/0
    R2(config-if)#ip add 12.12.12.2 255.255.255.0
    R2(config-if)#no sh
    R2(config-if)#exi
    R2(config)#int e0/1
    R2(config-if)#ip add 23.23.23.2 255.255.255.0
    R2(config-if)#no sh
    R2(config-if)#exi
    R2(config)#int lo0
    R2(config-if)#ip add 2.2.2.2 255.255.255.255
    R2(config-if)#exi

    Router R3

    R3(config)#int e0/0
    R3(config-if)#ip add 23.23.23.3 255.255.255.0
    R3(config-if)#no sh
    R3(config-if)#exi
    R3(config)#int lo0
    R3(config-if)#ip add 3.3.3.3 255.255.255.255
    R3(config-if)#exi

Setelah konfigurasi IP Address selesai sekarang kita lanjut konfigurasi BGP pada masing-masing Router.

    Router R1

    Pertama konfigurasi eBGP peering terlebih dahulu.

    R1(config)#router bgp 10
    R1(config-router)#neighbor 12.12.12.2 remote-as 20

    Barulah masukan network-network yang ingin didistribusikan.

    R1(config-router)#net 12.12.12.0 mask 255.255.255.0
    R1(config-router)#net 1.1.1.1 mask 255.255.255.255
    R1(config-router)#exi

    Router R2

    R2(config)#router bgp 20
    R2(config-router)#neighbor 12.12.12.1 remote-as 10
    R2(config-router)#neighbor 23.23.23.3 remote-as 30
    R2(config-router)#net 12.12.12.0 mask 255.255.255.0
    R2(config-router)#net 23.23.23.0 mask 255.255.255.0
    R2(config-router)#net 2.2.2.2 mask 255.255.255.255
    R2(config-router)#exi

    Router R3

    R3(config)#router bgp 30
    R3(config-router)#neighbor 23.23.23.2 remote-as 20
    R3(config-router)#net 23.23.23.0 mask 255.255.255.0
    R3(config-router)#net 3.3.3.3 mask 255.255.255.255
    R3(config-router)#exi

Konfirmasi

Setelah selesai konfigurasi, sekarang kita konfirmasi untuk melihat hasil dari konfigurasi yang kita lakukan, coba cek BGP Routing table pada salah satu Router.

R1#sh bgp
BGP table version is 6, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 2.2.2.2/32 12.12.12.2 0 0 20 i
*> 3.3.3.3/32 12.12.12.2 0 20 30 i
* 12.12.12.0/24 12.12.12.2 0 0 20 i
*> 0.0.0.0 0 32768 i
*> 23.23.23.0/24 12.12.12.2 0 0 20 i

Dan sekarang kita lihat pada main Routing table.

R1#sh ip ro
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override

Gateway of last resort is not set

1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [20/0] via 12.12.12.2, 00:06:27
3.0.0.0/32 is subnetted, 1 subnets
B 3.3.3.3 [20/0] via 12.12.12.2, 00:05:22
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.1/32 is directly connected, Ethernet0/0
23.0.0.0/24 is subnetted, 1 subnets
B 23.23.23.0 [20/0] via 12.12.12.2, 00:06:27

Kemudian lakukan PING pada interface loopback tiap Router.

R1#ping 2.2.2.2
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
R1#ping 3.3.3.3
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/1/1 ms