H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
6-18
specified by the item, the item is not filtered through and the next item is not tested;
otherwise, the next item is tested.
network: IP address prefix range (IP address). 0.0.0.0 0 means all IP addresses are
matched.
len: IP address prefix range (mask length). 0.0.0.0 0 means all IP addresses are
matched.
greater-equal, less-equal: Address prefix range [greater-equal, less-equal] to be
matched after the network len has been matched. The meaning of greater-equal is
"greater than and equal to" , and the meaning of less-equal is "less than and equal to".
The range is len <= greater-equal <= less-equal <= 32. When only greater-equal is
used, it denotes the prefix range [greater-equal, 32]. When only less-equal is used, it
denotes the prefix range [len, less-equal].
Description
Use the ip ip-prefix command to configure an ip-prefix list or one of its items.
Use the undo ip ip-prefix command to remove an ip-prefix list or one of its items.
An ip-prefix list is used for IP address filtering. An ip-prefix list may contain several
items, and each item specifies one address prefix range. The inter-item filtering relation
is "OR". That is, passing an item means filtering through this ip-prefix list. Passing no
item means not filtering through this ip-prefix list.
The address prefix range may contain two parts, which are determined by len and
[greater-equal, less-equal], respectively. If the prefix ranges of these two parts are both
specified, the IP address to be filtered must match the prefix ranges of these two parts.
If you specify network len as 0.0.0.0 0, this command matches the default route only.
Examples
# Define an ip-prefix named p1 to permit only the routes whose mask lengths are 17 or
18 on network segment 10.0.192.0 8 to pass.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17 less-equal 18
6.1.22 route-policy
Syntax
route-policy route-policy-name { permit | deny } node { node-number }
undo route-policy route-policy-name [ permit | deny | node node-number ]
View
System view