classifier behavior(Traffic policy view)

Function

The classifier behavior command specifies the traffic behavior for the traffic classifier in the policy.

The undo classifier command cancels the configuration.

By default, the traffic behavior is not specified for the traffic classifier in the traffic policy.

Format

classifier classifier-name behavior behavior-name [ precedence precedence-value ]

undo classifier classifier-name

Parameters

Parameter Description Value
classifier-name

Specifies the name of a predefined traffic classifier and is defined by the system or users through the traffic classifier command.

The value is a case-sensitive string that ranges from 1 to 127 characters.

behavior-name

Specifies the name of a predefined traffic behavior and is defined by the system or users through the traffic behavior command.

The value is a case-sensitive string that ranges from 1 to 127 characters.

precedence precedence-value

Specifies the precedence of a classifier. The smaller the value, the higher the precedence. That is, the action of the classifier is preferentially performed. You can change the step between policies through the step command to add new policies.

The value is an integer that ranges from 1 to 5119.

Views

Traffic policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mqc write

Usage Guidelines

Usage Scenario

To perform a specific traffic behavior for the traffic that matches a certain rule on an interface, you need to apply traffic policies on the interface.

Prerequisites

The traffic classifier, traffic behavior, and traffic policy are created in the system view.

Precautions

The undo classifier command cannot be used to delete the system-defined classifier. In the traffic policy view, one traffic classifier can be associated with only one traffic behavior, and you can configure the classifier-and-behavior-association for a maximum of 5120 traffic classifiers.In the traffic behavior view, you can configure multiple actions. You, however, must ensure that these actions do not conflict.

When the traffic policy in which traffic classifiers and traffic behaviors are bound is applied to an interface, you can modify the rules in traffic classifiers, actions in traffic behaviors, and binding relationships between traffic classifiers and traffic behaviors. The later configurations automatically overrides the previous ones. Therefore, you do not need to cancel the application of the traffic policy before modifying it.

A traffic policy configured with redirection is applied to only the inbound direction of an interface.

Example

# Associate the traffic classifier c1 with the traffic behavior b1 in the traffic policy p1.
<HUAWEI> system-view
[~HUAWEI] traffic classifier c1
[*HUAWEI-classifier-c1] quit
[*HUAWEI] traffic behavior b1
[*HUAWEI-classifier-b1] quit
[*HUAWEI] traffic policy p1
[*HUAWEI-trafficpolicy-p1] classifier c1 behavior b1 precedence 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >