show ip bgp routes

Displays BGP4 route information that is filtered by the table entry at which the display starts.

Syntax

show ip bgp routes [ num | ip-address/prefix | age num | as-path-access-list name | best | cidr-only | community-access-list name | community-reg-expression expression | detail | large-community | local | neighbor ip-addr | nexthop ip-addr | no-best | not-installed-best | prefix-list string | regular-expression name | route-map name | summary | unreachable ] [ vrf vrf-name ]

Parameters

num
Table entry at which the display starts.
ip-address/prefix
Table entry at which the display starts.
age
Displays BGP4 route information that is filtered by age.
as-path-access-list name
Displays BGP4 route information that is filtered by autonomous system (AS)-path access control list (ACL). The name must be between 1 and 32 ASCII characters in length.
best
Displays BGP4 route information that the device selected as best routes.
cidr-only
Displays BGP4 routes whose network masks do not match their class network length.
community-access-list name
Displays BGP4 route information for an AS-path community access list. The name must be between 1 and 32 ASCII characters in length.
community-reg-expression expression
Displays BGP4 route information for an ordered community-list regular expression.
detail
Displays BGP4 detailed route information.
large-community
Displays routes that match the large community identifier.
local
Displays BGP4 route information about selected local routes.
neighbor ip-addr
Displays BGP4 route information about selected BGP neighbors.
nexthop ip-addr
Displays BGP4 route information about routes that are received from the specified next hop.
no-best
Displays BGP4 route information that the device selected as not best routes.
not-installed-best
Displays BGP4 route information about best routes that are not installed.
prefix-list string
Displays BGP4 route information that is filtered by prefix list. The string must be between 1 and 32 ASCII characters in length.
regular-expression name
Displays BGP4 route information about routes that are associated with the specified regular expression.
route-map name
Displays BGP4 route information about routes that use the specified route map.
summary
Displays BGP4 summary route information.
unreachable
Displays BGP4 route information about routes whose destinations are unreachable through any of the BGP4 paths in the BGP4 route table.
vrf vrf-name
Specifies a VRF instance.

Modes

Privileged EXEC mode

Examples

The following example shows sample output from the show ip bgp routes command when an IP address is specified.

device# show ip bgp routes  50.55.55.10

Number of BGP Routes matching display condition : 8
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
       E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
       S:SUPPRESSED F:FILTERED s:STALE
       Prefix             Next Hop        MED        LocPrf     Weight Status
1      10.55.55.0/24      16.1.1.1         0         100        0      BME   
         AS_PATH: 65200 65100
2      10.55.55.0/24      17.1.1.1         0         100        0      ME    
         AS_PATH: 65200 65100
3      10.55.55.0/24      19.1.1.1         0         100        0      mE    
         AS_PATH: 65200 65100
4      10.55.55.0/24      21.1.1.1         0         100        0      mE    
         AS_PATH: 65200 65100
5      10.55.55.0/24      18.1.1.1         0         100        0      mE    
         AS_PATH: 65200 65100
6      10.55.55.0/24      22.1.1.1         0         100        0      mE    
         AS_PATH: 65200 65100
7      10.55.55.0/24      23.1.1.1         0         100        0      mE    
         AS_PATH: 65200 65100
8      10.55.55.0/24      20.1.1.1         0         100        0      mE    
         AS_PATH: 65200 65100
       Last update to IP routing table: 0h28m14s       Route is advertised to 7 peers:
        17.1.1.1(65200)                          18.1.1.1(65200)                          19.1.1.1(65200)                          
        20.1.1.1(65200)                          21.1.1.1(65200)                          22.1.1.1(65200)                          
        23.1.1.1(65200)                          

The following example shows sample output from the show ip bgp routes command when IPv4 NLRI over IPv6 next hop is enabled.

device# show ip bgp routes

Total number of BGP EVPN IMR Routes : 0
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
       E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
       S:SUPPRESSED F:FILTERED s:STALE
       Prefix             Next Hop        MED        LocPrf     Weight Status
1      10.2.2.2/32         2001:db8::2         0          100        0      BE
         AS_PATH: 200
2      10.0.0.0/24         2001:db8::2         0          100        0      BE
         AS_PATH: 200

The following example shows sample input from the show ip bgp routes summary command.

device# show ip bgp routes summary

  Total number of BGP routes (NLRIs) Installed     : 1
  Distinct BGP destination networks                : 1
  Filtered bgp routes for soft reconfig            : 0
  Routes originated by this router                 : 1
  Routes selected as BEST routes                   : 1
  Routes Installed as BEST routes                  : 1
  BEST routes not installed in IP forwarding table : 0
  Unreachable routes (no IGP route for NEXTHOP)    : 0
  IBGP routes selected as best routes              : 0
  EBGP routes selected as best routes              : 0
  BEST routes not valid for IP forwarding table    : 0