traffic classifier

Function

The traffic classifier command defines a traffic classier and displays the traffic classifier view.

The undo traffic classifier command deletes a specified traffic classifier.

By default, the system predefined a traffic classifier, namely, default-class, which cannot be used for user-defined traffic classifier name.

Format

traffic classifier classifier-name [ operator { and | or } ]

undo traffic classifier classifier-name

Parameters

Parameter Description Value
classifier-name

Specifies the name of a traffic classier. The classifier name cannot be predefined by the system.

The value is a string of 1 to 127 case-sensitive characters.

operator

Indicates the logical operator between the rules.

If operator is not specified, the logical relationship between rules in the traffic classifier is or by default.

-

and

Indicates that the logical relationship between matching rules in a specified traffic classifier is AND. This indicates that packets are of the specified classifier only when the packets match all rules.

-

or

Indicates that the logical relationship between matching rules in a specified traffic classifier is OR. This indicates that packets are of the specified classifier when the packets match any one of the rules.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mqc write

Usage Guidelines

Usage Scenario

To perform the same traffic policy for the traffic that matches certain rules and is classified into the same category, you can run this command to define a traffic classifier and define traffic rules in the traffic classifier.

Configuration Impact

After a traffic classifier is defined, the traffic matching the traffic rule is performed with the traffic behavior according to the mappings between traffic behaviors and traffic classifiers in the traffic policy.

Follow-up Procedure

The matching rules are defined in the traffic classifier.

Precautions

Up to 16 matching rules can be defined in a traffic classifier.

Example

# Define a traffic classifier named class1.
<HUAWEI> system-view
[~HUAWEI] traffic classifier class1
[*HUAWEI-classifier-class1]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >