Command Reference Protocol-independent Configuration Commands
Deny the route matching the prefix list.
Permit the route matching the prefix list.
Network address and mask. Network address can be any
valid IP address and the mask length is in the range of 0 to
32.
(Optional) Minimum length of the prefix (the starting length)
Note: “ge” indicates the operation of “larger than” and
“equivalent to”.
(Optional) Maximum length of the prefix (the ending length)
Note: “le” indicates the operation of “less than” and
“equivalent to”.
Global configuration mode.
The ip prefix-list command configures the prefix list, with the permit or deny keyword to determine the
action in case of matching.
You can execute this command to define an exact match, or use “ge” or “le” to define a range match for
a prefix for flexible configuration. “ge” indicates the range of minimum-prefix-length to 32; “le” indicates
the range of the mask length of the IP prefix to maximum-prefix-length; “ge” and “le” indicates the range
of minimum-prefix-length to maximum-prefix-length, namely, mask length of IP prefix <
minimum-prefix-length < maximum-prefix-length <=32.
The following example filters the RIP routes the OSPF redistributes by the destination IP address
following the rule defined in the associated IP prefix list, for example, redistribute the routes whose
destination IP address is in the range 201.1.1.0/24.
Ruijie# configure terminal
Ruijie(config)# ip prefix-list pre1 permit 201.1.1.0/24
Ruijie(config)# router ospf
Ruijie(config-router)# distribute-list prefix pre1 out rip
Ruijie(config-router)# end
6.6 ip prefix-list description
Use this command to add the description of a prefix list. Use the no form of this command to delete the
description.
ip prefix-list prefix-list-name description description-text
no ip prefix-list prefix-list-name description