H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – QoS
H3C S7500E Series Ethernet Switches Chapter 6 Traffic Mirroring Configuration
6-2
To do… Use the command… Remarks
Enter system view
system-view
Enter traffic behavior view
traffic behavior behavior-name
Required
Configure traffic mirroring
action in the traffic
behavior
mirror-to { cpu | interface
interface-type interface-number }
Required
6.3 Displaying and Maintaining Traffic Mirroring
To do… Use the command… Remarks
Display the configuration
information about the user-defined
traffic behavior
display traffic behavior
user-defined behavior-name
Display the configuration
information about the user-defined
policy
display qos policy
user-defined policy-name
Available in
any view
6.4 Traffic Mirroring Configuration Examples
6.4.1 Network Requirements
The user's network is as described below:
z Host A (with the IP address 192.168.0.1) and Host B are connected to Ethernet
2/0/1 of the switch.
z The data detection device is connected to Ethernet 2/0/2 of the switch.
It is required to monitor and analyze packets sent by Host A on the data detection
device.
Switch
Data monitoring
device
Host A
Eth2/0/1 Eth2/0/2
Host B
192.168.0.1
Figure 6-1 Network diagram for configuring traffic mirroring to a port
6.4.2 Configuration Procedure
Configure Switch: