H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 7 IP Routing Policy Configuration
7-5
To do... Use the command... Remarks
Define an if-match clause to
match the AS path field of
BGP routing information
if-match as-path as-path-number
Optional
Define an if-match clause to
match the community
attribute of BGP routing
information
if-match community
{ basic-community-number
[ whole-match ] |
adv-community-number }
Optional
Define an if-match clause to
match the destination IP
address of routing information
if-match { acl acl-number |
ip-prefix ip-prefix-name }
Optional
Define an if-match clause to
match the next-hop interface
of routing information
if-match interface interface-type
interface-number
Optional
Define an if-match clause to
match the next-hop address
of routing information
if-match ip next-hop { acl
acl-number | ip-prefix
ip-prefix-name }
Optional
Define an if-match clause to
match the cost of routing
information
if-match cost value
Optional
Define an if-match clause to
match the tag field of RIP or
OSPF routing information
if-match tag value
Optional
By default, no if-match clause is defined.
 Note:
z The relationship among the if-match clauses for a node specified in the
route-policy is logical β€œAND”. Routing information passes the match test against
the node only when it satisfies all the matching conditions specified by the
if-match clauses. Once a match is found, the system executes the apply clauses.
z If no if-match clause is defined for a node, all routing information will pass the
match test of the node.
III. Define apply Clauses for a Node
The apply clauses specify the actions to be performed after all the filtering conditions
of the if-match clauses of a node are satisfied. The actions include modifying some
attributes of routing information.
Follow these steps to define apply clauses: