Ayo sobat kita lanjut ngonfig nya ke materi yang selanjutnya..dan yang sekrang kita aka ngonfig lab IBGP Peering-loopback lanjut aja kita mulai breee..kuy
IBGP Peering - loopback
Gambar topology 1.1
Berikutnya kita akan belajar melakukan peers menggunakan ip loopback .sebelum melakukan bgp peers ,pastikan ip loopbacknya harus bisa di ping dulu
Di sini masih melanjutkan konfigurasi sebelumnya ,namun hapus dulu konfigurasi bgp sebelumnya dengan memasukan perintah berikut ini.
R1(config)#no router bgp 12
R2(config)#no router bgp 12
Untuk lab nya sehingga loopbacknya bisa di ping gunakan igp (rip,ospf,eigrp ),disisni kita menggunakan RIP.
R1(config)#router rip
R1(config-router)#network 1.0.0.0
R1(config-router)#net 12.0.0.0
R2(config)#router rip
R2(config-router)#net 2.0.0.0
R2(config-router)#net 12.0.0.0
Selanjutnya ping dan pastikan ip loopbacknya harus bisa di ping dulu
R1(config-router)#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 = 8/10/16 ms
R2(config-router)#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 = 8/10/12 ms
konfigurasikan bgp peernya dengan menambahkan update-source loopback nya 0.bila tidak di tambahkan baris tersebut ,maka yang di gunakan updatenya adalah ip interface physical sehingga bgp adjacency nya akan bermasalah
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 loopback0
R1(config-router)#
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 loopback0
R2(config-router)#
selanjutnya Verifikasi dan pastikan bgp adjacency nya sudah up
R1(config-router)#do sh ip bgp sum
BGP router identifier 1.1.1.1, 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
2.2.2.2 4 12 4 4 1 0 0 00:01:29 0
R1(config-router)#
Pastikan pada bagian state/pfxrcd nya bernilai nilai 0 dan perhatikan juga ip neighbornya bukan lagi ip physical melainka ip loopback nya
Next buat ip loopback baru buat di advertise ke bgp
R1(config)#int lo1
R1(config-if)#ip add 11.11.11.11 255.255.255.255
R1(config-if)#router bgp 12
R1(config-router)#net 11.11.11.11 mask 255.255.255.255
R2(config)#int lo1
R2(config-if)#ip add 22.22.22.22 255.255.255.255
R2(config-if)#router bgp 12
R2(config-router)#net 22.22.22.22 mask 255.255.255.255
Selanjutnya verifikasi sehingga nilai state/pfxrcd nya menjadi 1 dan cek route yang di advertise ke bgp,kemudian cek routing table nya juga
R4(config-router)#do sh ip bgp sum
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 240 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 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 748 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 19 19 3 0 0 00:15:31 1
R1(config-router)#
R1(config-router)#do 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
R41config-router)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
R 2.0.0.0/8 [120/1] via 12.12.12.2, 00:00:07, Serial1/0
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [200/0] via 2.2.2.2, 00:01:24
11.0.0.0/32 is subnetted, 1 subnets
C 11.11.11.11 is directly connected, Loopback1
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial1/0
R1(config-router)#
0 komentar:
Posting Komentar