3Com Switch 8800 Advanced Software V5 Configuration Guide

Traffic Mirroring Configuration Examples 869
Network diagram
Figure 255 Network diagram for mirroring traffic to a port
Configuration procedure
Configure Service A:
# Enter system view.
<Sysname> system-view
# Configure ACL 2000 to permit all packets with the source address 1.1.1.1.
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule 1 permit source 1.1.1.1 0
[Sysname-acl-basic-2000] quit
# Configure a traffic classifier and use ACL 2000 for traffic classification.
[Sysname] traffic classfier 1
[Sysname-classifier-1] if-match acl 2000
[Sysname-classifier-1] quit
# Configure a traffic behavior with the action of mirroring traffic to Ethernet 1/1/1.
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface ethernet 1/1/1
[Sysname-behavior-1] quit
# Configure a QoS policy and associate traffic behavior 1 with classifier 1.
[Sysname] qos policy 1
[Sysname-qospolicy-1] classifier 1 behavior 1
[Sysname-qospolicy-1] quit
# Apply the policy to the inbound direction of Ethernet 1/1/2.
[Sysname] interface ethernet 1/1/2
[Sysname-Ethernet1/1/2] qos apply policy 1 inbound
After the configuration above, you can analyze and monitor all the packets with
the source address 1.1.1.1 that PC A forwards on Server.
PC Server
Ethernet1/1
Ethernet1/1/2
Service A
PC ServerPC Server
Ethernet1/1/1
Service A
PC ServerPC Server
Ethernet1/1
Ethernet1/1/2
Service A
PCPC Server
Ethernet1/1
Ethernet1/1/2
Service A
PC ServerPC ServerPC Server
Ethernet1/1/1
Service A
PC Server