Konfigurasi dasar IBGP peering
Gambar 1.1
Peering BGP bisa menggunakan IP interface physical ataupun IP Loopback, umumnya pada iBGP menggunakan IP Loopback, sedangkan eBGP menggunakan IP Interfce Physical. Berikut akan melakukan peering dari IP interface physical. Router R1 dan R2 dalam 1 AS number yang sama yakni AS12
Untuk lab nya konfigurasikan perintah berikut
Konfigurasi router R1
R1(config)#int s1/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#router bgp 12
R1(config-router)#neighbor 12.12.12.2 remote-as 12
R1(config-router)#
Konfigurasi router R2
R2(config)#int s1/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#router bgp 12
R2(config-router)#neighbor 12.12.12.1 remote-as 12
R2(config-router)#
Tunggu beberapa saat sampai ada balesan “neighbor 12.12.12.2 up”pada router R1
" *Mar 1 00:06:34.463: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Up "
selanjutnya verifikasi
R4(config-router)#do sh ip bgp sum
BGP router identifier 12.12.12.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
12.12.12.2 4 12 2 2 0 0 0 00:00:08 0
R4(config-router)#
Pastikan pada bagian Ptate/PfxRcd terdapat nilainya walaupun 0, apabila masih bernilai active atau idle artinya BGP belum adjacency.cek kembali sudah benar konfigurasi BGP nya, pastikan ip peeringnya bisa diping
Selanjutnya kita akan coba lakukan advertise kan ke suatu route ke bgp
R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#router bgp 12
R1(config-router)#network 1.1.1.1 mask 255.255.255.255
R2(config-if)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config-if)#router bgp 12
R2(config-router)#network 2.2.2.2 mask 255.255.255.255
Selanjutnya verifikasi
R1(config)#do sh ip bgp sum
BGP router identifier 12.12.12.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
12.12.12.2 4 12 46 46 3 0 0 00:42:05 1
R1(config)#
Perhatikan pada bagian State/PfxRcd yang sebelumnya 0 kini terdapat nilainya 1, apabila masih bernilai active atau idle artinya BGP belum adjacency. Jika nilainya 1 artinya Router R1 tersebut menerima 1 route yang diadvertise BGP oleh Router R2.
untuk mengetahui route mana saja yang di advertise ke BGP,masukan perintah berikut.
R1#sh ip bgp
BGP table version is 3, local router ID is 12.12.12.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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*>i2.2.2.2/32 12.12.12.2 0 100 0 i
cek ip route nya
R1#sh ip route
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 [200/0] via 12.12.12.2, 00:15:30
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial1/0
R1#
selanjutnya kita lakukan test ping
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 = 20/38/64 ms
R1#
0 komentar:
Posting Komentar