Command Reference Protocol-independent Configuration Commands
6.8 ipv6 prefix-list
Use this command to create an IPv6 prefix list or add an entry in the prefix list. Use the no form of this
command to delete an IPv6 prefix list or an entry in the prefix list.
Ipv6 prefix-list prefix-list-name[ seq seq-number] { deny | permit} ipv6-prefix [ge
minimum-prefix-length][ le maximum-prefix- length]
no ipv6 prefix-list prefix-list-name[ seq seq-number] { deny | permit} ipv6-prefix [ge minimum-prefix-
length][ le maximum-prefix- length]
Sequence number of an entry in the prefix list. Its range is 1 to
4294967294. If the sequence number is not specified in this
command, the system will allocate a default one for the entry. The
default sequence number of the first entry is 5, and that of each
subsequent one is the product of adding 5 to the sequence number
of the proceeding entry.
Permit the access to the matching result.
Deny the access to the matching result.
Network address and its mask. The network address can be any
valid IP address. The mask can be 0 to 32 characters.
(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”.
No prefix list is created.
Global configuration mode
The ipv6 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 128; “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, Ipv6-prefix mask length <
minimum-prefix-length < maximum-prefix-length <= 128
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 2222::/64.
Ruijie# configure terminal