Operation Manual – Routing Protocol
H3C S3600 Series Ethernet Switches-Release 1510 Chapter 5
IP Routing Policy Configuration
5-5
Operation Command Description
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.
Define an action to
set the cost of routing
information
apply cost value
Optional
By default, no action is
defined to set the routing cost
of routing information.
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.
Note:
z A route-policy comprises multiple nodes. The relationship among the nodes in a
route-policy is “OR”. As a result, the system examines the nodes in sequence, and
once the route passes 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, the relationship among the if-match clauses for a
route-policy node is “AND”. 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.
5.4 ip-prefix Configuration
ip-prefix plays a role similar to ACL and but is more flexible and easier to understand.
When ip-prefix is applied to filtering routing information, its matching object is the
destination address information field of routing information.