Ip Prefix-List - Cisco Nexus 3548 Command Reference Manual

Nx-os unicast routing command reference
Hide thumbs Also See for Nexus 3548:
Table of Contents

Advertisement

ip prefix-list

ip prefix-list
To create a prefix list to match IP packets or routes against, use the ip prefix-list command. To remove
the prefix-list, use the no form of this command.
Syntax Description
name
seq number
permit
deny
prefix
eq length
ge length
le length
Command Default
None
Command Modes
Global configuration mode
Command History
Release
5.0(3)A1(1)
Usage Guidelines
You configure prefix lists with permit or deny keywords to either permit or deny the prefix based on the
matching condition. A prefix list consists of an IP address and a bit mask. The bit mask is entered as a
number from 1 to 32. An implicit deny is applied to traffic that does not match any prefix-list entry.
You can configure prefix lists to match an exact prefix length or a prefix range. Use the ge and le
keywords to specify a range of the prefix lengths to match, which provides a more flexible configuration.
If you do not configure a sequence number, Cisco NX-OS applies a a default sequence number of 5 to
the prefix list and subsequent prefix list entries are incremented by 5 (for example, 5, 10, 15, and so on).
If you configure a sequence number for the first prefix list entry but not subsequent entries, then Cisco
NX-OS increments the subsequent entries by 5 (for example, if the first configured sequence number is
3, then subsequent entries will be 8, 13, 18, and so on). You can suppress default sequence numbers by
entering the no form of this command with the seq keyword.
Cisco NX-OS evaluates prefix lists that start with the lowest sequence number and continue down the
list until a match is made. Once a match is made, the permit or deny statement is applied to that network
and the rest of the list is not evaluated.
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
194
ip prefix-list name [seq number] {permit | deny} prefix [eq length | [ge length] [le length]]
no prefix-list name [seq number] {permit | deny} prefix [eq length | [ge length] [le length]]
IP prefix list name. The name can be any alphanumeric string up to 63 characters.
(Optional) Specifies the number to order entries in the prefix list. The range is
from 1 to 4294967294.
Allows routes or IP packets that match the prefix list.
Rejects routes or IP packets that match the prefix list.
IP prefix in A.B.C.D/length format.
(Optional) Specifies the prefix length to match. The range is from 1 to 32.
(Optional) Specifies the prefix length to match. The range is from 1 to 32.
(Optional) Specifies the prefix length to match. The range is from 1 to 32.
Modification
This command was introduced.
Chapter
Unicast Routing Commands
OL-27852-01

Advertisement

Table of Contents
loading

Table of Contents