Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
traffic behavior behavior-name
A traffic behavior is created and its view is displayed.
Step 3 Run:
mirror to observe-server
----End
4.6.5 Configuring a Traffic Policy
After the traffic classifier and the flow mirroring action are configured, bind the traffic classifier
and the traffic behavior to a traffic policy and apply the traffic policy to an interface.
Procedure
Step 1 Create a traffic policy.
1. Run:
system-view
The system view is displayed.
2. Run:
traffic policy policy-name
A traffic policy is created and the traffic policy view is displayed.
3. Run:
classifier classifier-name behavior behavior-name
A traffic classifier is bound to a traffic behavior in the traffic policy.
classifier-name specifies the name of a traffic classifier and must be the same as the name
of a traffic classifier in 4.4.3 Configuring Complex Traffic Classification; behavior-
name specifies the name of a traffic behavior and must be the same as the name of a traffic
behavior in 4.4.4 Creating a Local Traffic Behavior.
4. Run:
quit
Quit the traffic policy view.
Step 2 Apply the traffic policy to an interface.
1. Run:
interface interface-type interface-number
The mirrored interface view is displayed.
2. Run:
traffic-policy policy-name inbound
The traffic policy is applied to the flow mirrored interface.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Device Management 4 Mirroring Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
72