Lab 2. iBGP Peering – Loopback
Sekarang kita akan melakukan Peer dengan IP loopback . Pastikan IP Loopbacknya harus
bisa diping terlebih dahulu. Oh iya jgn lupa untuk menghapus konfigurasi sebelumnya, sebelum dilanjutkan
ke konfigurasi berikutnya.
(Konfigurasi Peers BGP Internal menggunakan IP interface Loopback)
Metode Lab
- Konfigurasi pengalamatan IP seperti diatas
- Konfigurasi routing IGP RIP atau lainya agar loopbacknya reachable
- Konfigurasi iBGP Peers menggunakan IP Loopbacknya
- Membuat IP Loopback baru untuk diadvertise ke BGP
R1 & R2
R1(config)#no router bgp 12
R2(config)#no router bgp 12
Agar loopbacknya bisa diping , gunakan IGP (RIP, OSPF, EIGRP) ataupun static route
R1
R1(config)#router eigrp 10
R1(config-router)#network 1.1.1.1 0.0.0.0
R1(config-router)#network 12.12.12.1 0.0.0.0
R1(config-router)#no auto-summary
R2
R2(config)#router eigrp 10
R2(config-router)#network 2.2.2.2 0.0.0.0
R2(config-router)#network 12.12.12.2 0.0.0.0
R2(config-router)#no auto-summary
Pastikan IP Loopback nya HARUS bisa diping dulu
R1
R1(config)#do 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 = 16/20/24 ms
R2
R2(config)#do ping 1.1.1.1
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 = 16/20/24 ms
Konfigurasi BGP Peernya dengan menambahkan update-source loopback 0, jika
tidak ditambahkan, maka yang digunakan updatenya adalah ip interface
physical sehingga bpg adjencencynya akan bermasalah.
R1
R1(config)#router bgp 12
R1(config-router)#neighbor 2.2.2.2 remote-as 12
R1(config-router)#neighbor 2.2.2.2 update-source loopback 0
R2
R2(config)#router bgp 12
R2(config-router)#neighbor 1.1.1.1 remote-as 12
R2(config-router)#neighbor 1.1.1.1 update-source loopback 0
Pastikan BGP adjacencynya sudah up
R2
R2(config)#do show ip bgp summary
BGP router identifier 2.2.2.2, local AS number 12
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
1.1.1.1 4 12 0 0 0 0 0 never Active
Pastikan pada bagian state/ PfxRcdnya bernilai 0. Perhatikan juga ip
neighbornya bukan lagi ip physical melainkan ip loopbacknya. Kita buat ip
loopback baru untuk diadvertise ke BGP
Advertise network ke BGP
Buat interface loopback di masing masing router
Buat interface loopback di masing masing router
R1
R1(config)#int loopback 11
R1(config-if)#ip add 11.11.11.11 255.255.255.255
R1(config-if)#exit
R1(config)#router bgp 12
1(config-router)#network 11.11.11.11 mask 255.255.255.255
R2
R2(config)#int lo22
R2(config-if)#ip add 22.22.22.22 255.255.255.255
R2(config-if)#exit
R2(config)#router bgp 12
R2(config-router)#network 22.22.22.22 mask 255.255.255.255
Kita harus pastikan route tersebut sudah diadvertise sehingga nilai State/PfxRcd nya menjadi 1
R1
R1#sh ip bgp summary
BGP router identifier 1.1.1.1, local AS number 12
BGP table version is 3, main routing table version 3
2 network entries using 264 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 504 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 904 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
2.2.2.2 4 12 8 8 3 0 0 00:05:39 1
R1
R1#sh ip bgp
BGP table version is 3, 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
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
Sekarang kita cek routing tabelnya
R1
R1#sh ip route bgp
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [200/0] via 2.2.2.2, 00:05:44
Tidak ada komentar:
Posting Komentar