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-10
6.1.12 if-match { acl | ip-prefix }
Syntax
if-match { acl acl-number | ip-prefix ip-prefix-name }
undo if-match { acl | ip-prefix }
View
Route policy view
Parameters
acl-number: Number of the ACL used for filtering.
ip-prefix-name: Name of the address prefix list used for filtering, a string of to 19
characters.
Description
Use the if-match { acl | ip-prefix } command to configure a matching rule for the route-
policy and specify an IP address range.
Use the undo if-match { acl | ip-prefix } command to remove the setting.
The if-match { acl | ip-prefix } command references an ACL or a address prefix list for
filtering.
Related commands: if-match interface, if-match ip next-hop, if-match cost,
if-match tag, route-policy, apply ip next-hop, apply cost, apply local-preference,
apply origin, apply tag.
Examples
# Define an if-match clause, allowing route information filtered by route destination
address through the address prefix list p1 to pass the if-match clause.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] route-policy policy_10 permit node 12
%New sequence of this list
[H3C-route-policy] if-match ip-prefix p1
6.1.13 if-match as-path
Syntax
if-match as-path as-path-number
undo if-match as-path