Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 6 Routing Policy Configuration Commands
6-28
Description
Use the
ip ip-prefix
command to configure an IPv4 prefix list item.
Use the
undo ip ip-prefix
command to remove an IPv4 prefix list or an item.
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 prefix. The filtering relation among items is logic OR,
namely, passing any item means 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, then the IP address to be filtered must satisfy both of them.
If
ip-address mask-length
is specified as 0.0.0.0 0, then only the default route is
matched.
With the keyword and argument combination
ip-address mask-length
less-equal
specified as 0.0.0.0
less-equal
32, the command matches all the routes.
Examples
# Create a routing policy named policy1 with node 10, matching mode as permit. Define
an IP prefix list named p1 to permit only the routes in the network segment 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
6.2.7 reset ip ip-prefix
Syntax
reset ip ip-prefix
[
ip-prefix-name
]
View
User view
Parameters
ip-prefix-name
: IP prefix list name, a string of 1 to 19 characters.
Description
Use the
reset ip ip-prefix
command to clear the statistics of a specified IPv4 prefix list.
If no
ip-prefix-name
is specified, the statistics of all the IPv4 prefix lists will be cleared.