71
Overview
Configuring Traffic
Mirroring
T
RAFFIC
When configuring traffic mirroring, go to these sections for information that you
are interested in:
"Overview" on page 891
■
"Configuring Traffic Mirroring" on page 891
■
"Displaying and Maintaining Traffic Mirroring" on page 892
■
"Traffic Mirroring Configuration Examples" on page 892
■
Traffic mirroring is to replicate the specified packets to the specified destination. It
is generally used for testing and troubleshooting the network.
Depending on different types of mirroring destinations, there are three types of
traffic mirroring:
Mirroring to port: The desired traffic on a mirrored port is replicated and sent to
■
a destination port (that is, a mirroring port).
Mirroring to CPU: The desired traffic on a mirrored port is replicated and sent
■
to the CPU on the module of the port for further analysis.
Mirroring to VLAN: The desired traffic on a mirrored port is replicated and sent
■
to a VLAN, where the traffic is broadcast and all the ports (if available) in the
VLAN will receive the traffic. If the destination VLAN does not exist, you can still
configure the function, and the function will automatically take effect after the
VLAN is created and a port is added to it.
n
On the Switch 4800G, traffic can only be mirrored to ports and to CPU.
To configure traffic mirroring, you must enter the view of an existing traffic
behavior.
Follow these steps to configure traffic mirroring to a port:
To do...
Enter system view
Enter traffic behavior view
Configure traffic mirroring
action in the traffic behavior
M
IRRORING
Use the command...
system-view
traffic behavior
behavior-name
mirror-to { cpu | interface
interface-type
interface-number }
C
ONFIGURATION
Remarks
-
Required
Required