H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
6-19
Parameters
route-policy-name: Name of the route-policy, a string of 1 to 19 characters. It identifies a
route-policy uniquely.
permit: Specifies the match mode of the nodes in the defined route-policy as permit
mode. When a route meets all the if-match clauses of a node, the system executes the
apply clauses of the node but does not perform the match test of the next node. If not,
the system goes on the match test against the next node.
deny: Specifies the match mode of the nodes in the defined route-policy as deny mode.
When a route meets all the if-match clauses of a node, the system considers that the
route fails to pass through the node and does not take the match test of the next node.
node: Specifies a node of the route-policy.
node-number: Index of the node in the route-policy. When this route-policy is used for
filtering routing information, the node with smaller node-number will be tested first.
Description
Use the route-policy command to create a route-policy and enter route-policy view.
Use the undo route-policy command to delete the created route-policy.
By default, no route-policy is defined.
Route policies are used for route information filtering or policy routing. A route-policy
comprises multiple nodes and each node comprises some if-match clauses and apply
clauses.
An if-match clause defines match rules of a node. An apply clause defines the actions
to be taken after a route passes the match test of a node. The filtering relationship
between the if-match clauses of the node is "and". That is, all if-match clauses of a
node must be met.
The filtering relation between nodes of a route-policy is "OR". That is, passing the filter
of one node means passing the filter of the route-policy.
Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, apply ip next-hop, apply local-preference,
apply cost, apply origin, apply tag.
Examples
# Configure a route-policy named policy_10, with the node number of 12 and the
match mode of permit, and enter route-policy view.
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]route-policy policy_10 permit node 12
%New sequence of this list
[H3C-route-policy]