Configuring traffic mirroring
The following matrix shows the feature and router compatibility:
Feature
Configuring traffic
mirroring
Overview
Traffic mirroring copies specified packets to a specific destination for packet analysis and monitoring.
Traffic mirroring is implemented through QoS policies. In other words, you define traffic classes and
configure match criteria to classify packets to be mirrored, and then you configure traffic behaviors to
mirror packets that fit the match criteria to the specified destination. You can use traffic mirroring to
flexibly classify packets by defining match criteria and obtain accurate statistics. The MSR routers support
mirroring traffic to an interface, which is to copy the matching packets to a destination interface.
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
Mirroring traffic to an interface
Configuring a QoS policy
Applying a QoS policy
On some Layer 2 interfaces, traffic mirroring might conflict with traffic redirecting and port mirroring.
Configuring traffic mirroring
Configuring match criteria
Step
1.
Enter system view.
2.
Create a class, and then enter
class view.
3.
Configure match criteria.
MSR900
MSR93X
No
No
No
Command
system-view
traffic classifier tcl-name [ operator
{ and | or } ]
if-match [ not ] match-criteria
171
MSR20-1X
MSR20
No
MSR30
MSR50
MSR1000
Yes
Yes
Remarks
Required.
Required.
Required.
Required.
Remarks
N/A
By default, no traffic class exists.
By default, no match criterion is
configured in a traffic class.
No