Traffic mirroring configuration
Introduction to traffic mirroring
Traffic mirroring copies the specified packets to the specified destination for packet analyzing and
monitoring. It is implemented through QoS policies. In other words, you define traffic classes and
configure match criteria to classify packets to be mirrored and then configure traffic behaviors to mirror
packets that fit the match criteria to the specified destination. Traffic mirroring allows you to flexibly
classify packets by defining match criteria and obtain accurate statistics.
You can configure the traffic to be mirrored to an interface, to a CPU, or to a VLAN.
Mirroring traffic to an interface copies the matching packets to a destination interface.
•
Mirroring traffic to a CPU copies the matching packets to a CPU.
•
NOTE:
For more information about QoS policies, traffic classes, and traffic behaviors, see
Configuration Guide
Traffic mirroring configuration task list
Complete these tasks to configure traffic mirroring:
Task
Configuring traffic
mirroring of different types
Configuring a QoS policy
Applying a QoS policy
Configuring traffic mirroring
Configuring match criteria
Follow these steps to configure match criteria:
To do...
Enter system view
.
Mirroring traffic to a port
Mirroring traffic to the CPU
Apply a QoS policy to a port
Apply a QoS policy to a VLAN
Apply a QoS policy globally
Apply a QoS policy to the control plane
Use the command...
system-view
107
ACL and QoS
Remarks
Required
Required
Perform at least one
configuration.
Required
Required
Perform one of these
configurations
Remarks
—