14-7. show ip bgp prefix/mask-length

Syntax Description:

  • prefix— IP address of the prefix to display.

  • mask— Display prefix with a specific network mask.

  • mask-length— Bit length of the mask.

Purpose: To display the contents of the local BGP routing table for a specific prefix with a specific mask.

Cisco IOS Software Release: 10.0

Example: Display a Specific Prefix from the BGP Routing Table with the Specified Mask

The following is some sample output from the show ip bgp prefix mask command. First, list the entire contents of the BGP routing table:

rtrA#show ip bgp BGP table version is 90, local router ID is 199.172.15.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete ...

Get Cisco® BGP-4 Command and Configuration Handbook (CCIE Professional Development) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.