# Disable Spanning Tree Protocol (STP) in the monitor port Ethernet 1/0/3.
[DeviceA] interface ethernet 1/0/3
[DeviceA-Ethernet1/0/3] undo stp enable
Verify the configurations.
# Display the configuration of all port mirroring groups.
[DeviceA] display mirroring-group all
monitor port: Ethernet1/0/3
After the configurations are completed, you can monitor all the packets received and sent by the
marketing department and the technical department on the server.
Layer 2 remote port mirroring configuration example
On the Layer 2 network shown in
Device A connects to the marketing department through Ethernet 1/0/1, and connects to the trunk
port Ethernet 1/0/1 of Device B through the trunk port Ethernet 1/0/2. Device C connects to the
server through Ethernet 1/0/2, and to the trunk port Ethernet 1/0/2 of Device B through the trunk
port Ethernet 1/0/1. Device A supports configurable reflector port configuration.
Configure Layer 2 remote port mirroring to enable the server to monitor the bidirectional traffic of
the marketing department.
Figure 48 Network diagram for Layer 2 remote port mirroring configuration
Configure Device A (the source device)
# Create a remote source group.