Lab 1. Konfigurasi Dasar iBGP Peering
Untuk peering BGP, kita bisa menggunakan IP Loopback untuk iBGP dan Internal Physical untuk eBGP. Kita akan melakukan peering dari IP Inteface physical untuk membuat eBGP.
R1:
R1(config)#int f0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no sh
R1(config)#router bgp 12
R1(config-router)#neighbor 12.12.12.2 remote-as 12
R2:
R2(config)#int f0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no sh
R2(config)#router bgp 12
R2(config-router)#neighbor 12.12.12.1 remote-as 12
Tunggulah beberapa saat hingga muncul seperti ini
*Jul 18 13:59:08.511: %BGP-5-ADJCHANGE: neighbor 12.12.12.1 Up
R1:
R1#sh ip bgp summary
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 44 44 1 0 0 00:42:50 0
Pastikan pada bagian State/PfxRcd terdapat nilainya walaupun 0. Selanjutnya kita akan coba lakukan advertise suatu route ke BGP.
R1:
R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config)#router bgp 12
R1(config-router)#network 1.1.1.1 mask 255.255.255.255
R2:
R2(config)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config)#router bgp 12
R2(config-router)#network 2.2.2.2 mask 255.255.255.255
R1:
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 = 8/11/20 ms
R1:
R1#sh ip bgp summary
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 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
12.12.12.2 4 12 44 44 1 0 0 00:42:50 0
Sebelumnya pada bagian State/PfxRcd sudah muncul nilai 0, saat ini sudah berganti muncul nilai 1, yang artinya kita menerima 1 route yang diadvertise BGP oleh router lain.
R1:
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
Selanjutnya kita cek, apakah route tersebut sudah muncul dalam routing tabelnya.
R1:
R1#sh ip route bgp
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [200/0] via 12.12.12.2, 00:10:15
R1:
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/21/24 ms
R2:
R2#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/12/20 ms
Komentar
Posting Komentar