5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
675
Example
The following is an example of this command.
(Routing)(Config)#interface 0/1
(Routing)(Interface 0/1)#
(Routing)(Interface 0/1)#ip policy route-map equal-access
In order to disable policy based routing from an interface, use no form of this
command no ip policy <route-map-name>
7-51
ip prefix-list
To create a prefix list or add a prefix list entry,
use the ip prefix-list command in Global Configuration
mode. Route prefixes are matched with those specified in the prefix list. Each prefix list includes a
sequence of entries ordered by sequence numbers. A router sequentially examines each prefix list entry
to determine if the route's prefix matches that of the entry. An empty or nonexistent prefix list permits all
prefixes. An implicit deny is assumed if a given prefix does not match any entries of a prefix list. Once a
match or deny occurs the router does not go th
rough the rest of the list. A prefix list may be used within a
route map to match a route’s prefix using the command.
Up to 128 prefix lists may be configured. The maximum number of statements allowed in a prefix list is 64.
No
command deletes a prefix list or a statement in a prefix list. The command
no ip prefix-list list-name
deletes the entire prefix list. To remove an individual statement from a prefix list, you must specify the
statement exactly, with all its options.
ip prefix-list list-name {[seq number] {permit | deny} network/length [ge length] [le length] |
renumber renumber-interval first-statement-number}
no ip prefix-list list-name [seq number] {permit | deny} network/length [ge length] [le length]
Parameters
list-name
Text name of the prefix list. Up to 32 characters.
seq number
(Optional) Sequence number for the prefix list statement. Prefix list
statements are ordered from lowest to highest sequence number and
applied in that order. If you do not specify a sequence number, the
system automatically selects a sequence number five units larger than
the last sequence number in the list. Two statements may not be
configured with the same sequence number. The value ranges from 1 to
4,294,967,294.
permit
Permit routes whose destination prefix matches the statement.
deny
Deny routes whose destination prefix matches the statement.
network/length
Specifies the match criteria for routes being compared to the prefix list
statement. The network can be a
ny valid IP prefix. The length is any
IPv4 prefix length from 0 to 32.
ge length
(Optional) If this option is configured, then a prefix is only considered a
match if its network mask length is greater than or equal to this value.
This value must be longer than the network length and less than or
equal to 32.