H3C Technologies H3C S3600 Series Switches User Manual
Page 361
5-4
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enter the route-policy
view
route-policy
route-policy-name { permit
| deny } node node-number
Required
Define a rule to match the
IP address of routing
information
if-match { acl acl-number |
ip-prefix ip-prefix-name }
Optional
By default, no matching is performed on
the address of routing information.
Define a rule to match the
cost of routes
if-match cost value
Optional
By default, no matching is performed
against the cost of routes.
Define a rule to match the
next-hop interface of
routing information
if-match interface
interface-type
interface-number
Optional
By default, no matching is performed on
the next-hop interface of routing
information.
Define a rule to match the
next-hop address of
routing information
if-match ip next-hop { acl
acl-number | ip-prefix
ip-prefix-name }
Optional
By default, no matching is performed on
the next-hop address of routing
information.
Define a rule to match the
tag field of OSPF routing
information
if-match tag value
Optional
By default, no matching is performed on
the tag field of OSPF routing information.
Apply a cost to routes
satisfying matching rules
apply cost value
Optional
By default, no cost is applied to routes
satisfying matching rules.
Define an action to set the
tag field of routing
information
apply tag value
Optional
By default, no action is defined to set the
tag field of OSPF routing information.
z
A route policy comprises multiple nodes. There is an OR relationship between the nodes in a route
policy. As a result, the system examines the nodes in sequence, and once the route matches a
node in the route policy, it will pass the matching test of the route policy without entering the test of
the next node.
z
During the matching, there is an AND relationship between the if-match clauses for a route policy
node. That is, a matching test against a node is successful only when all the matching conditions
specified by the if-match clauses in the node are satisfied.
z
If no if-match clauses are specified, all the routes will filter through the node.
z
A node can comprise no if-match clause or multiple if-match clauses.
z
Each node comprises a set of if-match and apply clauses. if-match clauses define matching rules.
apply clauses specify the actions performed after a matching test against the node is successful,
and the actions can be the attribute settings of routing information.