Operation Manual – Port Mirroring
H3C S3610&S5510 Series Ethernet Switches
Chapter 1 Port Mirroring Configuration
1-8
1.5 Port Mirroring Configuration Examples
1.5.1 Local Port Mirroring Configuration Example
I. Network requirements
The departments of a company connect to each other through Ethernet switches:
z
Research and Development (R&D) department is connected to Switch C through
Ethernet 1/0/1.
z
Marketing department is connected to Switch C through Ethernet 1/0/2.
z
Data monitoring device is connected to Switch C through Ethernet 1/0/3
The administrator wants to monitor the packets received on and sent from the R&D
department and the marketing department through the data monitoring device.
Use the local port mirroring function to meet the requirement. Perform the following
configurations on Switch C.
z
Configure Ethernet 1/0/1 and Ethernet 1/0/2 as mirroring source ports.
z
Configure Ethernet 1/0/3 as the mirroring destination port.
II. Network diagram
Figure 1-3
Network diagram for local port mirroring configuration
III. Configuration procedure
Configure Switch C.
# Create a local port mirroring group.
<SwitchC> system-view
[SwitchC] mirroring-group 1 local
# Add port Ethernet 1/0/1 and Ethernet 1/0/2 to the port mirroring group as source ports.
Add port Ethernet 1/0/3 to the port mirroring group as the destination port.
[SwitchC] mirroring-group 1 mirroring-port Ethernet 1/0/1 Ethernet 1/0/2 both