show ip prefix-list

Use this command to display the prefix list entries for IPv4 interfaces.

Command Syntax

Copy
show ip prefix-list
show ip prefix-list WORD
show ip prefix-list WORD seq <1-4294967295>
show ip prefix-list WORD A.B.C.D/M
show ip prefix-list WORD A.B.C.D/M longer
show ip prefix-list WORD A.B.C.D/M first-match
show ip prefix-list summary
show ip prefix-list summary WORD
show ip prefix-list detail
show ip prefix-list detail WORD

Parameters

WORD

Name of a prefix list.

A.B.C.D/M

IP prefix <network>/<length> (for example, 35.0.0.0/8).

first-match

First matched prefix.

longer

Lookup longer prefix.

<1-4294967295>

Sequence number.

detail

Detail of prefix lists.

summary

Summary of prefix lists.

Default

None

Command Mode

Privileged execution mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

The following is a sample output of the show ip prefix-list command showing prefix-list entries.

Copy
#show ip prefix-list
ip prefix-list myPrefixList: 3 entries
   seq      5 permit 172.1.1.0/16
   seq     10 permit 173.1.1.0/16
   seq     15 permit 174.1.1.0/16