14-9. show ip bgp prefix/mask-length longer-prefixes

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 and any prefixes having a longer mask than the one specified.

Cisco IOS Software Release: 10.0

Example: Display a Specific Prefix from the BGP Routing Table Having a Mask Greater Than or Equal to the Mask Specified in the Command

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

rtrA#show ip bgp BGP table version is 90, local router ID is 199.172.15.1 ...

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.