482 CHAPTER 31: CONFIGURING IP ROUTING POLICY
Define a Matching Rules The if-match clause defines matching rules to meet the filtering conditions of the routing information of the current routing policy. The matched objects are the attributes of this routing information.Perform the following configurations in routing policy view.

Tabl e 561 Configure a Matching Rules

By default, AS regular expression, community list, interface type, IP address range, metric value, OSPF tag field and OSPF routing information type are not matched.Note that:
For one routing policy node, the if-match clauses of the same part use Boolean
“AND” operations in the matching process so the routing information cannot
Operation Command
Specify the AS number to be matched at
the beginning of the AS path in the
route-policy.
if-match as-path aspath-list-number
Remove the AS number to be matched
from the beginning of the AS path in the
route-policy.
undo if-match as-path
Specify the BGP community attributes to
be matched in the route-policy. if-match community-list
{standard-community-list-number [
exact-match ] |
extended-community-list-number }
Remove the BGP community attributes to
be matched from the route-policy. undo if-match community-list
Specify the ACL and prefix list to be
matched in the route-policy. if-match ip address { acl-number |
ip-prefix prefix-list-name }
Remove the ACL and prefix list to be
matched from the route-policy. undo if-match ip address [ ip-prefix
]
Specify the interface to be matched in the
route-policy. if-match interface [ type number ]
Remove the interface to be matched from
the route-policy. undo if-match interface
Specify the route-policy-matching
next-hop of the routing information. if-match ip next-hop { acl-number |
ip-prefix prefix-list-name }
Remove the route-policy-matching
next-hop of the routing information. undo if-match ip next-hop [ ip-prefix
]
Specify the cost of the routing information
to be matched in the route-policy. if-match cost cost
Remove the cost of the routing
information to be matched in the
route-policy
undo if-match cost
Specify the tag of OSPF routing
information to be matched in the
route-policy.
if-match tag tag-value
Delete the tag of OSPF routing
information to be matched in the
route-policy.
undo if-match tag
Specify the matched OSPF route type (i.e.
internal or external) in the routing policy. if-match route-type { internal |
external }
Delete the matched OSPF route type in the
routing policy undo if-match route-type