3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
816 CHAPTER 61: IP UNICAST POLICY ROUTING CONFIGURATION COMMANDS
Parameters policy-name: Policy name, a string of 1 to 19 characters.
deny: Specifies the match mode of the policy node as deny. When a packet
satisfies all rules defined by the if-match clauses, the packet will be refused by the
node and will not go to match the next policy node.
permit: Specifies the match mode of the policy node as permit. If a packet
satisfies all the rules defined by the if-match clauses, the apply clauses are
executed. If not, the packet will go to match the next policy node.
node node-number: Number of a policy node, in the range of 0 to 65535. The
node with a smaller node-number is matched first.
Description Use the
policy-based-route command to define a policy or policy node and
enter policy view.
Use the
undo policy-based-route command to remove a policy or policy node.
No policy or policy node is defined by default.
The default match mode of a policy node is permit.
A policy consists of several nodes, and a node consists of if-match clauses and
apply clauses. The if-match clauses define the match rules for the node and the
apply clauses define the actions that should be taken for matched packets. There
is an AND relationship between the if-match clauses of a node. That is to say, a
packet must satisfy all matching rules specified by all if match clauses for the
node before the action specified by the apply clause is taken.
There is an OR relationship between nodes of the policy. That is, if a packet
matches a node, it satisfies the policy.
Related commands: if-match acl and if-match packet-length.
Examples # Configure a policy named policy1, set the match mode of node 10 to permit,
and enter policy routing view.
<Sysname> system-view
[Sysname] policy-based-route policy1 permit node 10
[Sysname-policy-based-route]
reset policy-based-route statistics
Syntax reset policy-based-route statistics [ policy-name ]
View User view
Parameters policy-name: Policy name, a string of 1 to 19 characters.
Description Use the
reset policy-based-route statistics command to clear the statistics of
policy routing based on a specified policy.