BGP Cheatsheet PDF
BGP Cheatsheet PDF
BGP Cheatsheet PDF
BGP TABLE TYPES BGP NEIGHBOR STATES BGP TERMINOLOGY BGP BASICS
For BGP Routing Information Base (RIB) to learn BGP routes through When BGP is configured
its neighbours, store the best BGP routes and then advertise the best with a neighbour IP
routes to neighbours/peers, there is need for multiple BGP tables address, it goes through a
BGP Routing Information Base consists of three parts: Adj-RIBs-In , series of stages before it
Loc-RIB and Adj-RIBs-Out reaches the desired
Established state. Per RFC
1771, BGP goes through
the following stages of a BGP PATH ATTRIBUTES
neighbour relationship – https://ipwithease.com
https://ipwithease.com
R1#
router bgp 1
no synchronization
bgp log-neighbor-changes
network 192.168.12.0
neighbor 2.2.2.2 remote-as 1 TROUBLE SHOOTING COMMANDS
neighbor 2.2.2.2 update-source
R3#sh run
Loopback0 ——–>R1 to use Loopback 0
router bgp 3
as source for BGP neighborship and
no synchronization
updates
network 192.168.23.0
no auto-summary
neighbor 2.2.2.2 remote-as 1
!
neighbor 2.2.2.2 update-source
ip route 2.2.2.0 255.255.255.0
Loopback0——–>R3 to use Loopback
192.168.12.2 ——->Static Route to
0 as a source for BGP neighborship
reach Loopback0 of R2
and updates with R2
R2#sh run no auto-summary
router bgp 1 ! SAMPLE CONFIGURATION FOR eBGP AND iBGP
no synchronization ip route 2.2.2.0 255.255.255.0
network 192.168.12.0 192.168.23.2——->Static Route to eBGP Sample Configuration: iBGP Sample Configuration:
network 192.168.23.0 reach Loopback0 of R2
neighbour 1.1.1.1 remote-as 1
neighbour 1.1.1.1 update-source Loopback0 ——–>R2 to use
Loopback 0 as a source for BGP neighborship and updates with R1
neighbor 1.1.1.1 next-hop-self
neighbour 3.3.3.3 remote-as 3
neighbor 3.3.3.3 update-source Loopback0——–>R2 to use Loopback R1 R1
0 as a source for BGP neighborship and updates with R3 R1(config)#Router BGP 65001 R1(config)#Router BGP 65001
no auto-summary R1(config-router)#Neighbor 192.168.10.2 remote-as 65002 R1(config-router)#Neighbor 192.168.10.2 remote-as 65001
! R1(config-router)#exit R1(config-router)#exit
ip route 1.1.1.0 255.255.255.0 192.168.12.1 ——->Static Route to R2 R2
reach Loopback0 of R1 R1(config)#Router BGP 65002 R1(config)#Router BGP 65001
ip route 3.3.3.0 255.255.255.0 192.168.23.3 ——->Static Route to R1(config-router)#Neighbor 192.168.10.1 remote-as 65001 R1(config-router)#Neighbor 192.168.10.1 remote-as 65001
reach Loopback0 of R3 R1(config-router)#exit R1(config-router)#exit
https://ipwithease.com