R2511-HP MSR Router Series Network Management and Monitoring Configuration Guide(V5)

171
Configuring traffic mirroring
The following matrix shows the feature and router compatibility:
Feature MSR900 MSR93
X
MSR20-1
X
MSR20
MSR30 MSR50 MSR1000
Configuring traffic
mirroring
Yes No No No Yes Yes No
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 Remarks
Configuring match criteria Required.
Mirroring traffic to an interface Required.
Configuring a QoS policy Required.
Applying a QoS policy Required.
On some Layer 2 interfaces, traffic mirroring might conflict with traffic redirecting and port mirroring.
Configuring traffic mirroring
Configuring match criteria
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a class, and then enter
class view.
traffic classifier tcl-name [ operator
{ and | or } ]
By default, no traffic class exists.
3. Configure match criteria.
if-match [ not ] match-criteria
By default, no match criterion is
configured in a traffic class.