Displaying and maintaining traffic mirroring, Traffic mirroring configuration examples, Traffic mirroring configuration example – H3C Technologies H3C S7500E Series Switches User Manual
Page 174: Network requirements, Configuration procedure
10-5
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
Traffic Mirroring Configuration Examples
Traffic Mirroring Configuration Example
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 GigabitEthernet 2/0/1 of
the switch.
z
The data monitoring device is connected to GigabitEthernet 2/0/2 of the switch.
It is required to monitor and analyze packets sent by Host A on the data monitoring device.
Figure 10-1 Network diagram for configuring traffic mirroring to a port
Switch
Data monitoring
device
Host A
GE2/0/1
GE2/0/2
Host B
192.168.0.1
Configuration Procedure
z
Configuration on the Switch
# Enter system view.
# Configure basic IPv4 ACL 2000 to match packets with the source IP address 192.168.0.1.
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 192.168.0.1 0
[Sysname-acl-basic-2000] quit
# Create class 1 and use basic ACL 2000 as the match criteria.
[Sysname] traffic classfier 1
[Sysname-classifier-1] if-match acl 2000
[Sysname-classifier-1] quit
# Create traffic behavior 1 and configure the action of mirroring traffic to GigabitEthernet 2/0/2 for the
traffic behavior.