Lab 2. iBGP Peering – Loopback
Kita akan melakukan Peer dengan IP Loopback. Pastikan IP Loopbacknya harus bisa diping terlebih dahulu. Hapus konfigurasi sebelumnya, sebelum dilanjutkan ke konfigurasi berikutnya.
R1:
R1(config)#no router bgp 12
R2:
R2(config)#no router bgp 12
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)#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 berjalan.
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 physicalnya melainkan ip loopbacknya. Kita buat ip loopback baru untuk diadvertise ke BGP.
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
R1(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 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
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
Komentar
Posting Komentar