Show ip prefixlist

To display information about a prefix-list or prefix-list entries, use the show ip prefix-list EXEC command.

■ show ip prefix-list [detail | summary] name [network/len] [seq seq-num] [longer] [firstmatch]

Syntax Description



detail | summary

(Optional) Displays detailed or summarized information about all prefix-lists


(Optional) The name of a specific prefix-list


(Optional) The network number and length (in bits) of the network mask


(Optional) Applies the sequence number to the prefix-list entry


The sequence number of the prefix


Displays all entries of a prefix that are more specific than the given network/len


Displays the entry of a prefix that matches the given network/len

3-56 Configuring BGP on Cisco Routers (BGP) v3.2 © 2005, Cisco Systems, Inc.

The show ip bgp prefix-list command displays selected routes from a BGP routing table based on the contents of a prefix-list. Use this command for selective filtering of BGP table output on Cisco IOS devices on the basis of network prefix groups.

To perform prefix-list-based BGP table filtering, follow these steps:

Step 1 Configure a prefix-list that permits ranges of networks meant to be displayed in the BGP table output.

Step 2 Include a reference to a configured prefix-list in the show ip bgp prefix-list command.

Note The support for prefix-list BGP table filtering was added in Cisco IOS Software Release

© 2005, Cisco Systems, Inc. Route Selection Using Policy Controls 3-57

In this example, the show ip prefix-list command has been issued with the detail keyword. The output of the command displays detailed information about configured prefix-lists, including sequence numbers, the prefix-list entries, and the number of times that each entry has been matched by a corresponding prefix.

3-58 Configuring BGP on Cisco Routers (BGP) v3.2 © 2005, Cisco Systems, Inc.

Was this article helpful?

0 0

Post a comment