12-29
deny
: Specifies the match mode for the IPv6 prefix list as
deny
. If a route matches the IPv6
prefix list, the route neither passes the filter nor matches against the next item; if not, the route
matches against the next item (suppose the IPv6 prefix list has multiple items configured).
permit
: Specifies the match mode for the IPv6 prefix list as
permit
. If a route matches the IPv6
prefix list, it passes the IPv6 prefix list. If not, it matches against the next item (suppose the
IPv6 prefix list has multiple items configured).
ipv6-address prefix-length
: Specifies an IPv6 prefix and prefix length. A
prefix-length
is in the
range 0 to 128. When specified as :: 0, the arguments match the default route.
greater-equal min-prefix-length:
Greater than or equal to the minimum prefix length.
less-equal
max-prefix-length
: Less than or equal to the maximum prefix length.
The length relation is
mask-length
<=
min-mask-length
<=
max-mask-length
<= 128. If only the
min-prefix-length is specified, the prefix length range is [ min-prefix-length, 128 ]. If only the
max-prefix-length is specified, the prefix length range is [ prefix-length, max-prefix-length ]. If
both the min-prefix-length and max-prefix-length are specified, the prefix length range is
[ min-prefix-length, max-prefix-length ].
Description
Use the
ip
ipv6-prefix
command to configure an IPv6 prefix list or an item of it.
Use the
undo
ip
ipv6-prefix
command to remove an IPv6 prefix list or an item.
No IPv6 prefix list is configured by default.
An IPv6 prefix list may have multiple items, and each of them specifies a range of IPv6 prefixes.
The relation between items is logic OR, namely, if a route passes an item of it, the route will
pass the IPv6 prefix list.
The IPv6 prefix range is determined by
prefix-length
and [
min-prefix-length, max-prefix-length
].
If both
mask-length
and [
min-mask-length, max-mask-length
] are specified, then the IPv6
addresses must satisfy both of them.
If
ipv6-address prefix-length
is specified as :: 0, only the default route matches.
To match all routes, configure :: 0
less-equal
128.
Examples
# Permit IPv6 addresses with a mask length between 32 bits and 64 bits.
<Sysname> system-view
[Sysname] ip ipv6-prefix abc permit :: 0 greater-equal 32 less-equal 64
# Deny IPv6 addresses with the prefix being 3FFE:D00::/32, and prefix length being greater
than or equal to 32 bits.
<Sysname> system-view
[Sysname] ip ipv6-prefix abc deny 3FEE:D00:: 32 less-equal 128
reset ip ipv6-prefix
Syntax
reset ip ipv6-prefix
[
ipv6-prefix-name
]
View
User view