816
C
61: IP U
HAPTER
NICAST
Parameters
Description
Related commands:
Examples
reset policy-based-route statistics
Syntax
View
Parameters
Description
P
R
C
OLICY
OUTING
ONFIGURATION
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.
Use the
policy-based-route
enter policy view.
Use the
undo policy-based-route
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.
if-match acl and if-match packet-length.
# 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 [ policy-name ]
User view
policy-name: Policy name, a string of 1 to 19 characters.
Use the
reset policy-based-route statistics
policy routing based on a specified policy.
C
OMMANDS
command to define a policy or policy node and
command to remove a policy or policy node.
command to clear the statistics of