Configuring flow mirroring
This chapter describes how to configure flow mirroring.
Overview
Flow mirroring copies specified packets to a specified destination for analysis and monitoring. Flow
mirroring is implemented through QoS policies.
You can use flow mirroring to flexibly classify packets by defining match criteria and obtain accurate
statistics.
•
You can define traffic classes and configure match criteria to classify packets to be mirrored.
•
You can configure traffic behaviors to mirror packets that fit the match criteria to the specified
destination.
You can mirror traffic to one of the following destinations.
•
Interface—Copies the matching packets to a destination interface.
•
CPU—Copies the matching packets to the CPU of the member device where interfaces with
flow mirroring configured reside.
For more information about QoS policies, traffic classes, and traffic behaviors, see ACL and QoS
Configuration Guide.
NOTE:
Both Layer 2 and Layer 3 Ethernet interfaces support the flow mirroring function. The term
"interface" in this chapter collectively refers to these two types of interfaces. You can use the port
link-mode command to configure an Ethernet port as a Layer 2 or Layer 3 interface (see Layer
2—LAN Switching Configuration Guide).
Remote flow mirroring overview
Remote flow mirroring combines flow mirroring with remote port mirroring to use a remote mirroring
group to mirror local packets matching the specified criteria to the specified destination port on a
remote device.
Configure remote flow mirroring by following these steps:
1.
Configure flow mirroring on the local device to mirror packets matching certain criteria to an
egress port.
2.
Configure a remote source mirroring group on the local device and specify the destination port
for flow mirroring as the egress port, so that packets sent to the destination port by flow
mirroring can be mirrored to the remote device by remote port mirroring.
Flow mirroring configuration task list
Task
Configuring match criteria
Configuring different
types of flow mirroring
Mirroring traffic to an interface
Mirroring traffic to the CPU
111
Remarks
Required.
Perform one of these
configurations.