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