482CHAPTER 31: CONFIGURING IP ROUTING POLICY

Define a Matching Rules The if-matchclause 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.

Table 561 Configure a Matching Rules

Operation

Command

 

 

Specify the AS number to be matched at

if-matchas-pathaspath-list-number

the beginning of the AS path in the

 

route-policy.

 

 

 

Remove the AS number to be matched

undo if-match as-path

from the beginning of the AS path in the

 

route-policy.

 

 

 

Specify the BGP community attributes to

if-match community-list

be matched in the route-policy.

{standard-community-list-number [

 

exact-match ]

 

extended-community-list-number }

 

 

Remove the BGP community attributes to

undo if-match community-list

be matched from the route-policy.

 

 

 

Specify the ACL and prefix list to be

if-match ip address { acl-number

matched in the route-policy.

ip-prefixprefix-list-name }

 

 

Remove the ACL and prefix list to be

undo if-match ip address [ ip-prefix

matched from the route-policy.

]

 

 

Specify the interface to be matched in the

if-match interface [ type number ]

route-policy.

 

 

 

Remove the interface to be matched from

undo if-match interface

the route-policy.

 

 

 

Specify the route-policy-matching

if-match ip next-hop { acl-number

next-hop of the routing information.

ip-prefixprefix-list-name }

 

 

Remove the route-policy-matching

undo if-match ip next-hop [ ip-prefix

next-hop of the routing information.

]

 

 

Specify the cost of the routing information

if-match cost cost

to be matched in the route-policy.

 

 

 

Remove the cost of the routing

undo if-match cost

information to be matched in the

 

route-policy

 

 

 

Specify the tag of OSPF routing

if-match tag tag-value

information to be matched in the

 

route-policy.

 

 

 

Delete the tag of OSPF routing

undo if-match tag

information to be matched in the

 

route-policy.

 

 

 

Specify the matched OSPF route type (i.e.

if-match route-type { internal

internal or external) in the routing policy.

external }

 

 

Delete the matched OSPF route type in the

undo if-match route-type

routing policy

 

 

 

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

Page 486
Image 486
3Com 10014299 manual Configure a Matching Rules