0% found this document useful (0 votes)
210 views3 pages

BGP Cheatsheet PDF

Uploaded by

milko
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
210 views3 pages

BGP Cheatsheet PDF

Uploaded by

milko
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

BGP TABLE TYPES When BGP is configured

with a neighbour IP
For BGP Routing Information Base (RIB) to learn BGP routes through its neighbours, store the best address, it goes through a
BGP routes and then advertise the best routes to neighbours/peers, there is need for multiple BGP
series of stages before it
tables BGP Routing Information Base consists of three parts: Adj-RIBs-In , Loc-RIB and Adj-RIBs-Out
reaches the desired
BGP CHEATSHEET – PAGE 1/2 Established state. Per RFC
1771, BGP goes through

BGP NEIGHBOR STATES BGP BASICS BGP


TERMINOLOGY
[Link] BGP PATH ATTRIBUTES

Following are the commands to


find output for 3 BGP tables (Adj-
RIBs-Out,Loc-RIB andAdj-RIBs-In) :

the following stages of a neighbour


relationship –

[Link]

BGP MESSAGE TYPES [Link]

All BGP message are unicast to the one neighbour over the TCP

EXAMPLE TOPOLOGY TO UNDERSTAND THE USE OF TABLE-MAPS:


R1 is advertising a route of its loopback 1 i.e. [Link] to Route algorithm, BGP works through
Reflector. We have applied a route-map on Route-Reflector to each attribute until it finds one
deny everything and then this route-map is called in the table map to that gives a preference. If
command so as to avoid the installation of the route in the RIB and there is no preferred attribute
FIB on the RR. Though RR doesn’t install the route in its RIB & FIB it BGP will always route over the
still reflects the route to R2. shortest AS path.
connection.
BGP BEST PATH SELECTION How does BGP choose
the best path? [Link]
Using the best path selection [Link]
[Link]

BGP CHEATSHEET - PAGE 2/2


SAMPLE no synchronization
SCENARIO eBGP bgp log-neighbor-changes
MULTIHOP network [Link]
neighbor [Link] remote-as 1
BGP TYPES – eBGP and iBGP

R1#
router bgp 1
TROUBLE SHOOTING COMMANDS
network [Link]
neighbour [Link] remote-as 1
R3#sh run
router bgp 3
neighbor [Link] update-source Loopback0 ——–>R1 to use no synchronization
Loopback 0 as source for BGP neighborship and updates network [Link]
no auto-summary neighbor [Link] remote-as 1 neighbor [Link] update-source
! Loopback0——–>R3 to use Loopback 0 as a source for BGP
ip route [Link] [Link] [Link] ——->Static Route to neighborship and updates with R2
reach Loopback0 of R2 no auto-summary
!
R2#sh run ip route [Link] [Link] [Link]——->Static Route to
router bgp 1 reach Loopback0 of R2
no synchronization
network [Link]
! remote-as 65002 R1(config-router)#exit
ip R2
R1(config)#Router BGP 65002
R1(config-router)#Neighbor [Link]
remote-as 65001 R1(config-router)#exit

SAMPLE route [Link] [Link] [Link] ——->Static Route to


reach Loopback0 of R1
CONFIGURATION FOR eBGP AND iBGP ip route [Link] [Link] [Link] ——->Static Route
eBGP Sample Configuration: iBGP Sample Configuration: to reach Loopback0 of R3
R1 R1
R1(config)#Router BGP 65001
neighbour [Link] update-source Loopback0 ——–>R2 to use R1(config-router)#Neighbor [Link] remote-as
Loopback 0 as a source for BGP neighborship and updates with 65001 R1(config-router)#exit
R1 neighbor [Link] next-hop-self R2
neighbour [Link] remote-as 3 R1(config)#Router BGP 65001
neighbor [Link] update-source Loopback0——–>R2 to use R1(config-router)#Neighbor [Link] remote-as
Loopback 0 as a source for BGP neighborship and updates with R1(config)#Router BGP 65001 65001 R1(config-router)#exit
R3 no auto-summary R1(config-router)#Neighbor [Link]

[Link]

You might also like