traffic behavior

Function

The traffic behavior command defines a traffic behavior and displays the traffic behavior view.

The undo traffic behavior command deletes a specified traffic behavior.

By default, the system predefines a traffic behavior named be. The traffic behavior name should not be the name of the traffic behavior predefined by the system.

Format

traffic behavior behavior-name

undo traffic behavior behavior-name

Parameters

Parameter Description Value
behavior-name

Specifies the name of a traffic behavior. The traffic behavior name should not be the name of the traffic behavior predefined by the system.

The value is a string of 1 to 127 case-sensitive characters with spaces not supported.

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 behavior for a certain traffic classifier in complex traffic classification, you can run this command to create a traffic behavior and configure traffic actions in the traffic behavior.

Follow-up Procedure

You need to configure the traffic action in the traffic behavior, bind the traffic behavior and traffic classifier in the traffic policy, and apply the policy to interfaces.

For traffic actions that can be configured, see Traffic Classifiers and Traffic Behaviors, for details about the configuration process and related commands, see Defining a Traffic Behavior and Configuring Actions.

Precautions

A traffic behavior can contain multiple traffic actions, and multiple traffic actions take effect at the same time.

The traffic behavior cannot be deleted after being bound to the traffic classifier in the traffic policy.

Example

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