816CHAPTER 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-matchclauses, 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-matchclauses, 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-numberis matched first.

Description Use the policy-based-routecommand to define a policy or policy node and enter policy view.

Use the undo policy-based-routecommand 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-matchclauses and apply clauses. The if-matchclauses 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-matchclauses 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-matchpacket-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.

Page 816
Image 816
3Com MSR 30, MSR 50 manual Reset policy-based-route statistics, Related commands if-match acl and if-matchpacket-length