Configuring traffic mirroring
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.
•
For more information about QoS policies, traffic classes, and traffic behaviors, see ACL and QoS
Configuration Guide.
Traffic mirroring configuration task list
Task
Configuring match criteria
Configuring traffic
mirroring of different types
Configuring a QoS policy
Applying a QoS policy
Configuring match criteria
Step
1.
Enter system view.
2.
Create a class and enter class
view.
3.
Configure match criteria.
For more information about the traffic classifier and if-match commands, see ACL and QoS Command
Reference.
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
Command
system-view
traffic classifier tcl-name [ operator
{ and | or } ]
if-match match-criteria
90
Remarks
Required.
Required.
Perform at least one
configuration.
Required.
Required.
Perform one of these
configurations.
Remarks
N/A
By default, no traffic class exists.
By default, no match criterion is
configured in a traffic class.