107
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
ACL and QoS
Configuration Guide
.
Traffic mirroring configuration task list
Complete these tasks to configure traffic mirroring:
Task Remarks
Required
Mirroring traffic to a port
Configuring traffic
mirroring of different types
Mirroring traffic to the CPU
Required
Perform at least one
configuration.
Configuring a QoS policy Required
Apply a QoS policy to a port
Apply a QoS policy to a VLAN
Apply a QoS policy globally
Applying a QoS policy
Apply a QoS policy to the control plane
Required
Perform
one of these
configurations
Configuring traffic mirroring
Configuring match criteria
Follow these steps to configure match criteria:
To do… Use the command… Remarks
Enter system view system-view —