R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
987
min-mask-length <= max-mask-length <= 32. If only the min-mask-length is specified, the prefix length
range is [ min-mask-length, 32 ]. If only the max-mask-length is specified, the prefix length range is
[ mask-length, max-mask-length ]. If both min-mask-length and max-mask-length are specified, the prefix
length range is [ min-mask-length, max-mask-length ].
Description
Use ip ip-prefix to configure an IPv4 prefix list or an item of it.
Use undo ip ip-prefix to remove an IPv4 prefix list or an item of it.
No IPv4 prefix list is configured by default.
An IPv4 prefix list is used to filter IPv4 addresses. It may have multiple items, each of which specifies a
range of IPv4 prefixes. The relation between the items is logic OR. If an item is passed, the IPv4 prefix list
is passed. If no item is passed, the IP prefix list cannot be passed.
The IP prefix range is determined by mask-length and [ min-mask-length, max-mask-length ]. If both
mask-length and [ min-mask-length, max-mask-length ] are specified, the IP address must satisfy both of
them.
If both ip-address and mask-length are specified as 0.0.0.0 0, only the default route will be matched.
To match all routes, use 0.0.0.0 0 less-equal 32.
Examples
# Define IP prefix list p1 to permit routes matching network 10.0.192.0/8 and with mask length 17 or 18.
<Sysname> system-view
[Sysname] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17 less-equal 18
reset ip ip-prefix
Syntax
reset ip ip-prefix [ ip-prefix-name ]
View
User view
Default level
2: System level
Parameters
ip-prefix-name: IP prefix list name, a string of 1 to 19 characters.
Description
Use reset ip ip-prefix to clear the statistics of a specified IPv4 prefix list. If no ip-prefix-name is specified,
the statistics of all IPv4 prefix lists will be cleared.
Examples
# Clear the statistics of IPv4 prefix list abc.
<Sysname> reset ip ip-prefix abc