Operation Manual – Port Mirroring
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Port Mirroring Configuration
1-9
[SwitchC] mirroring-group 1 mirroring-port Ethernet 1/0/1 Ethernet 1/0/2 both
[SwitchC] mirroring-group 1 monitor-port Ethernet 1/0/3
# Display the configuration of all the port mirroring groups.
[SwitchC] display mirroring-group all
mirroring-group 1:
type: local
status: active
mirroring port:
Ethernet1/0/1 both
Ethernet1/0/2 both
monitor port: Ethernet1/0/3
After finishing the configuration, you can monitor all the packets received and sent by
R&D department and Marketing department on the Data monitoring device.
1.5.2 Remote Port Mirroring Configuration Example
I. Network requirements
The departments of a company connect to each other through Ethernet switches:
z Department 1 is connected to Ethernet 1/0/1 of Switch A.
z Department 2 is connected to Ethernet 1/0/2 of Switch A.
z Ethernet 1/0/3 of Switch A connects to Ethernet 1/0/1 of Switch B.
z Ethernet 1/0/2 of Switch B connects to Ethernet 1/0/1 of Switch C.
z The data monitoring device is connected to Ethernet 1/0/2 of Switch C.
The administrator wants to monitor the packets sent from Department 1 and 2 through
the data monitoring device.
Use the remote port mirroring function to meet the requirement. Perform the following
configurations:
z Use Switch A as the source device, Switch B as the intermediate device, and
Switch C as the destination device.
z On Switch A, create a remote source mirroring group; create VLAN 2 and
configure it as the remote port mirroring VLAN; add port Ethernet 1/0/1 and
Ethernet 1/0/2 to the port mirroring group as two source ports. Configure port
Ethernet 1/0/4 as the reflector port.
z Configure port Ethernet 1/0/3 of Switch A, port Ethernet 1/0/1 and Ethernet 1/0/2
of Switch B, and port Ethernet 1/0/1 of Switch C as trunk ports and configure them
to permit packets of VLAN 2.
z Create a remote destination mirroring group on Switch C. Configure VLAN 2 as
the remote port mirroring VLAN and port Ethernet 1/0/2, to which the data
monitoring device is connected, as the destination port.