0% found this document useful (0 votes)
9 views

bgp output commands

Uploaded by

rajaabraryousaf
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

bgp output commands

Uploaded by

rajaabraryousaf
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

1 Crafted by Abhishek Kumar Chaudhary

BGP Outputs/Commands (for enterprise)


First,
Don’t confuse among below commands

• Show ip bgp all summary


• Show ip bgp summary
• Show bgp summary
• show ip bgp ipv4 unicast summary → this will only show IPv4 prefixes
These all give same output.

Outputs:
ASR920Router#sh ip bgp all summ
For address family: IPv4 Unicast
BGP router identifier 10.224.134.28, local AS number 65100
BGP table version is 1394124, main routing table version 1394124
8667 network entries using 1248048 bytes of memory
34644 path entries using 3048672 bytes of memory
837 multipath network entries and 1674 multipath paths
153/146 BGP path/bestpath attribute entries using 25704 bytes of memory
337 BGP rrinfo entries using 8088 bytes of memory
60 BGP AS-PATH entries using 1456 bytes of memory
17 BGP community entries using 640 bytes of memory
17 BGP extended community entries using 584 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
BGP using 4333192 total bytes of memory
BGP activity 42321/33417 prefixes, 429657/394046 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.224.128.3 4 65100 1620561 756116 1394124 0 0 1y16w 8659
10.224.130.3 4 65100 1623211 756104 1394124 0 0 1y16w 8659
10.224.132.19 4 65100 1874190 755959 1394124 0 0 1y16w 8659
10.224.134.21 4 65100 1624524 756230 1394124 0 0 1y16w 8659

For address family: VPNv4 Unicast


BGP router identifier 10.224.134.28, local AS number 65100
BGP table version is 41182, main routing table version 41182
237 network entries using 36972 bytes of memory
967 path entries using 88964 bytes of memory
90 multipath network entries and 180 multipath paths
27/26 BGP path/bestpath attribute entries using 4752 bytes of memory

https://www.linkedin.com/in/abhishek-chaudhary-48997510b/

-
2 Crafted by Abhishek Kumar Chaudhary

337 BGP rrinfo entries using 8088 bytes of memory


60 BGP AS-PATH entries using 1456 bytes of memory
17 BGP community entries using 640 bytes of memory
17 BGP extended community entries using 584 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
BGP using 141456 total bytes of memory
BGP activity 42321/33417 prefixes, 429657/394046 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.224.128.3 4 65100 1620561 756116 41182 0 0 1y16w 213
10.224.130.3 4 65100 1623211 756104 41182 0 0 1y16w 213
10.224.132.19 4 65100 1874190 755959 41182 0 0 1y16w 213
10.224.134.21 4 65100 1624524 756230 41182 0 0 1y16w 213

Explanation Line by Line:

For address family: IPv4 Unicast


General BGP Information
• BGP Router Identifier: 10.224.134.28 (The unique ID of this router for BGP)
• Local AS Number: 65100 (The autonomous system this router belongs to)
• BGP Table Version: 1394124 (Internal BGP table version tracking updates)
• Memory Usage:
o 8667 network entries (prefixes)
o 34644 path entries (possible routes for those prefixes)
o Various memory statistics for attributes, AS paths, and communities
• BGP Activity:
o 42,321 prefixes have been added, 33,417 removed
o 429,657 paths added, 394,046 removed
o Scan interval: 60 seconds (time between periodic BGP table scans)
Now Understand the Column:

Neighbor IP Version AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.224.128.3 4 65100 1620561 756116 1394124 0 0 1y16w 8659
10.224.130.3 4 65100 1623211 756104 1394124 0 0 1y16w 8659
10.224.132.19 4 65100 1874190 755959 1394124 0 0 1y16w 8659
10.224.134.21 4 65100 1624524 756230 1394124 0 0 1y16w 8659

• All neighbors are in the same AS (65100), meaning this is an iBGP (Internal BGP)
session.
• The "Up/Down" time is 1 year and 16 weeks, indicating stable connections.

https://www.linkedin.com/in/abhishek-chaudhary-48997510b/

-
3 Crafted by Abhishek Kumar Chaudhary

• Each neighbor has received a high number of messages (MsgRcvd), meaning


there is active communication.
• State/PfxRcd shows each peer is advertising 8659 prefixes.
• InQ and OutQ are 0, meaning there are no pending updates in the queue.

For address family: VPNv4 Unicast

First Understand what is “VPNv4 Unicast”

A specific address family used to route traffic within a Layer 3 VPN over an MPLS
network.

MPLS VPN (Multiprotocol BGP for VPNs).


General BGP Information
• BGP Router Identifier: 10.224.134.28
• Local AS Number: 65100
• BGP Table Version: 41182 (Different from IPv4 Unicast)
• Memory Usage:
o 237 network entries
o 967 path entries
o 90 multipath entries
o 141,456 total bytes of memory
• BGP Activity: Same activity tracking as IPv4 Unicast. (as shown in above
paragraphs)
BGP Neighbor Summary (VPNv4 Unicast)
Neighbor IP Version AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

10.224.128.3 4 65100 1620561 756116 41182 0 0 1y16w 213

10.224.130.3 4 65100 1623211 756104 41182 0 0 1y16w 213

10.224.132.19 4 65100 1874190 755959 41182 0 0 1y16w 213

10.224.134.21 4 65100 1624524 756230 41182 0 0 1y16w 213

• This is a VPNv4 address family, typically used in MPLS L3VPN setups.


• State/PfxRcd is 213 prefixes per neighbor, significantly lower than IPv4 Unicast.
• The BGP table version is different from IPv4 Unicast, meaning separate updates
are tracked.
• The session uptime is 1 year and 16 weeks, indicating stable VPN connectivity.

https://www.linkedin.com/in/abhishek-chaudhary-48997510b/

-
4 Crafted by Abhishek Kumar Chaudhary

Other commands:

Sh ip bgp neighbor <x.x.x.x>


Sh ip bgp neighbor <x.x.x.x> advertised-routes
Sh ip bgp neighbor <x.x.x.x>
sh ip bgp topology *

ASR920Router#sh ip bgp topology * → (will give topology information)


For address family: IPv4 Unicast

BGP table version is 1394124, local router ID is 10.224.134.28


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

Network Next Hop Metric LocPrf Weight Path


* i 0.0.0.0 10.224.128.24 140 0 i
*i 10.224.128.24 140 0 i
*i 10.224.128.24 140 0 i
*>i 10.224.128.21 150 0 i
* i 10.1.17.242/32 10.224.136.29 0 100 0 ?
*>i 10.224.136.29 0 100 0 ?
*i 10.224.136.29 0 100 0 ?
*i 10.224.136.29 0 100 0 ?
* i 10.1.101.0/24 10.224.128.56 0 100 0 ?

Explanation Line by Line:

General BGP Information


• BGP Table Version: 1394124 (Internal BGP table tracking updates)
• Local Router ID: 10.224.134.28 (BGP identifier of this router)
Status Codes:
These symbols indicate the state of each route:
• * → Valid route
• > → Best route (installed in the routing table)
• i → Internal BGP (iBGP) route
• r → RIB-failure (not installed in RIB)
• m → Multipath (used for ECMP - Equal Cost MultiPath)
• b → Backup-path (alternative path)

https://www.linkedin.com/in/abhishek-chaudhary-48997510b/

-
5 Crafted by Abhishek Kumar Chaudhary

• ? → Origin is unknown (redistributed or incomplete)

Now let’s understand the Route entries

Network Next Hop Metric LocPrf Weight Path


0.0.0.0 10.224.128.24 - - 140 0i
10.224.128.24 - - 140 0i
10.224.128.24 - - 140 0i
> 10.224.128.21 - - 150 0i
10.1.17.242/32 10.224.136.29 0 100 0 ?
> 10.224.136.29 0 100 0 ?
10.224.136.29 0 100 0 ?
10.224.136.29 0 100 0 ?
10.1.101.0/24 10.224.128.56 0 100 0 ?

Default Route (0.0.0.0)


• There are multiple iBGP-learned (i) paths via 10.224.128.24, all having a weight of
140.
• The best (>) route is via 10.224.128.21 with a weight of 150.
• The router will prefer the path through 10.224.128.21 because of the higher
weight.

Prefix 10.1.17.242/32
• Multiple paths exist via 10.224.136.29.
• Origin is ?, meaning it was redistributed (e.g., from static or connected routes).
• The best (>) path is also through 10.224.136.29.

Prefix 10.1.101.0/24
• Learned from 10.224.128.56, with a metric of 0, Local Preference of 100, and
Weight of 0.
• The origin is ?, indicating redistribution.

Other Commands:

Sh ip bgp <x.x.x.x> → This will give you detail about the particular route entry in BGP
Routing Table.

Let’s Check the Route details for one of the Peers from above output (10.224.136.29
)

https://www.linkedin.com/in/abhishek-chaudhary-48997510b/

-
6 Crafted by Abhishek Kumar Chaudhary

ASR920Router#show ip bgp 10.224.136.29


BGP routing table entry for 0.0.0.0/0, version 1362642
Paths: (4 available, best #4, table default)
Multipath: iBGP
Not advertised to any peer
Refresh Epoch 2
Local
10.224.128.24 (metric 18) from 10.224.134.21 (10.224.134.21)
Origin IGP, localpref 140, valid, internal
Community: 4266393740
Originator: 10.224.128.24, Cluster list: 44.138.101.49
rx pathid: 0, tx pathid: 0

Explanation Line by Line:

BGP Entry Details


• BGP Routing Table Entry for: 0.0.0.0/0 (Default route)
• Version: 1362642 (Indicates BGP table update history)
• Paths Available: 4 (Four possible routes exist for this prefix) → we can clearly
see 4 paths in above output
• Best Path: #4 (The router has selected the 4th path as the best)
• Table: default (Installed in the default BGP table)
• Multipath: iBGP (Indicates equal-cost multipath routing using iBGP)

• Next Hop: 10.224.128.24 (Traffic will be forwarded via this IP)


• Metric: 18 (Could be IGP metric or MED in some cases)
• BGP Peer (Received from): 10.224.134.21
• Origin: IGP (This route originated from an IGP, typically OSPF or EIGRP)
• Local Preference: 140 (Higher values are preferred, default is 100)
• Path Attributes:
o Valid: The route is valid and can be used.
o Internal: Learned from an iBGP peer (same AS).
o Not Advertised to Any Peer: The router has not propagated this route to
any other BGP peers.
o Community: 4266393740 (BGP community, used for policy-based routing
decisions)
o Originator: 10.224.128.24 (Identifies the original router that advertised
this route)
o Cluster List: 44.138.101.49 (Indicates route reflection has occurred)

https://www.linkedin.com/in/abhishek-chaudhary-48997510b/

-
7 Crafted by Abhishek Kumar Chaudhary

Other commands:

show ip bgp vpnv4 vrf <vrf name> → this will give you all the routes in MPLS Environment
show ip bgp vpnv4 vrf <vrf name> neighbors

For entire BGP Configuration:

Show run | sec bgp

References:

https://www.cisco.com/c/en/us/td/docs/ios/iproute_bgp/command/reference/irg_book
/irg_bgp5.html

https://www.linkedin.com/in/abhishek-chaudhary-48997510b/

You might also like