BGP Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

Display BGP system and network statistics

Want to summarize with AI?

Log in

Overview

Displays BGP routing tables, neighbor information, and performance statistics to monitor operation and verify configuration.

View BGP routing tables, neighbor information, and performance statistics for troubleshooting and network management.

Context: Use these commands to monitor BGP operation and verify configuration status.

You can use any of these commands to display specific BGP information as needed:

Before you begin

None

Procedure

1.

Run the show bgp cidr-only command to display routes with non-natural network masks or Classless Inter-domain Routing (CIDR).

Example:

Router# show bgp cidr-only
2.

Run the show bgp community command to display routes that match a specific BGP community.

Example:

Router# show bgp community 1081:5 exact-match
3.

Run the show bgp regexp regular-expression command to display routes matching an AS path regular expression.

Example:

Router# show bgp regexp "^3 "
4.

Run the show bgp command to display all entries in the BGP routing table.

Example:

Router# show bgp
5.

Run the show bgp neighbors ip-address [ advertised-routes | dampened-routes | flap-statistics | performance-statistics | received prefix-filter | routes ] command to display neighbor information.

The following keywords display specific BGP neighbor information:

  • advertised-routes : all routes that the router advertised to the neighbor

  • dampened-routes : dampened routes learned from the neighbor

  • flap-statistics : flap statistics for routes learned from the neighbor

  • performance-statistics : performance statistics for the BGP process and this neighbor

  • received prefix-filter : the received prefix list filter

  • routes : routes learned from the neighbor

Example:

Router# show bgp neighbors 10.0.101.1
6.

Run the show bgp paths command to display all BGP paths in the database.

Example:

Router# show bgp paths
7.

Run the show bgp neighbor-group group-name configuration command to display the effective configuration for a neighbor group, including any configuration inherited by this neighbor group.

Example:

Router# show bgp neighbor-group group_1 configuration
8.

Run the show bgp summary command to display the summary status of all BGP connections.

Example:

Router# show bgp summary