9-2
To do… Use the command… Remarks
Specify the destination
interface for traffic mirroring
mirror-to interface interface-type
interface-number
Required
Exit behavior view quit —
Create a policy and enter
policy view
qos policy policy-name —
Associate the class with the
traffic behavior in the QoS
policy
classifier tcl-name behavior
behavior-name
—
Exit policy view quit —
To an interface
Applying the QoS policy to an
interface
—
To a VLAN Applying the QoS policy to a VLAN —
Apply the
QoS
policy
Globally
Applying the QoS policy globally —
Mirroring Traffic to the CPU
Follow these steps to mirror traffic to the CPU:
To do… Use the command… Remarks
Enter system view system-view —
Create a class and enter
class view
traffic classifier tcl-name [ operator
{ and | or } ]
—
Configure the match criteria if-match match-criteria —
Exit class view quit —
Create a behavior and enter
behavior view
traffic behavior behavior-name Required
Mirror traffic to the CPU mirror-to cpu Required
Exit behavior view quit —
Create a policy and enter
policy view
qos policy policy-name —
Associate the class with the
traffic behavior in the QoS
policy
classifier tcl-name behavior
behavior-name
—
Exit policy view quit —
To an interface
Applying the QoS policy to an
interface
—
To a VLAN Applying the QoS policy to a VLAN —
Apply the
QoS
policy
Globally
Applying the QoS policy globally —