Korenix Technology Co., Ltd.
Industrial
Layer 3 Managed Ethernet Switch
_____________________________________________________________________________
Industrial Layer 3 Managed Ethernet SwitchUser Manual
Page: 772/1568
7.10.2.2 ip prefix-list
To create a prefix list or add a prefix list entry, use the
ip prefix-list
command in Global Configuration
mode.
Prefix lists allow matching of route prefixes with those specified in the prefix list. Each prefix list includes
of a sequence of prefix list entries ordered by their 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 assume if a given prefix does not match any entries of a
prefix list. Once a match or deny occurs the router does not go through the rest of the list.
A prefix list may be used within a route map to match a route's prefix using the command "match ip
address"
Up to 128 prefix lists may be configured. The maximum number of statements allowed in prefix list is 64.
To delete a prefix list or a statement in a prefix list, use the
no
form of this command. 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.
Syntax
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]
Default Setting
No prefix lists are configured by default. W hen neither the
ge
nor the
le
option is configured, the
destination prefix must match the network/length exactly. If the
ge
option is configured without the
le
option, any prefix with a network mask greater than or equal to the
ge
value is considered a match.
Similarly, if the
le
option is configured without the
ge
option, a prefix with a network mask less than or
equal to the
le
value is considered a match.
Command Mode
Global Config
Parameter
list-name:
The text name of the prefix list. Up to 32 characters.
seq number:
(Optional) The sequence number for this prefix list statement. Prefix list statements are
ordered from lowest sequence number to highest and applied in that order. If you do not specify a
sequence number, the system will automatically select a sequence number five 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 any 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.
le length:
(Optional) If this option is configured, then a prefix is only considered a match if its network
mask length is less than or equal to this value. This value must be longer than the ge length and less