Configuring traffic mirroring, Traffic mirroring overview, Mirroring traffic to an interface – H3C Technologies H3C SR8800 User Manual
Page 142
130
Configuring traffic mirroring
Traffic mirroring overview
Traffic mirroring refers to the process of copying the specified packets to the specified destination for
packet analysis and monitoring.
You can configure mirroring traffic to an interface, to the CPU, or to a VLAN.
•
Mirroring traffic to an interface copies the matching packets on an interface to a destination
interface.
•
Mirroring traffic to the CPU copies the matching packets on an interface to a CPU (the CPU of the
board where the traffic mirroring-enabled interface resides).
•
Mirroring traffic to a VLAN copies the matching packets on an interface to a VLAN. In this case, all
the ports in the VLAN can receive the mirrored packets. Even if the VLAN does not exist, you can
pre-define the action of mirroring traffic to the VLAN. After the VLAN is created and some ports join
the VLAN, the action of mirroring traffic to the VLAN takes effect automatically.
NOTE:
•
For more information about QoS policies, traffic classes, and traffic behaviors, see
ACL and QoS
Configuration Guide.
•
SPE cards support mirroring inbound and outbound traffic and SPC cards only support mirroring
inbound traffic.
Configuring traffic mirroring
To configure traffic mirroring, you must enter the view of an existing traffic behavior.
NOTE:
In a traffic behavior, the action of mirroring traffic to an interface, the action of mirroring traffic to a CPU,
and the action of mirroring traffic to a VLAN are mutually exclusive.
Mirroring traffic to an interface
To mirror traffic to an interface:
Step Command
1.
Enter system view.
system-view
2.
Enter traffic behavior view.
traffic behavior behavior-name
3.
Specify the destination interface for traffic
mirroring.
mirror-to interface interface-type interface-number
NOTE:
Your configuration with the mirror-to interface command in a traffic behavior can overwrite the previous
configuration in the traffic behavior, if any.
- H3C SR6600-X H3C SR6600 H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module