# 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
[DeviceA-Ethernet1/0/3] quit
2. Verify the configurations.
# Display the configuration of all port mirroring groups.
[DeviceA] display mirroring-group all
mirroring-group 1:
type: local
status: active
mirroring port:
Ethernet1/0/1 both
Ethernet1/0/2 both
mirroring CPU:
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
Network requirements
On the Layer 2 network shown in Figure 48:
• 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
Source device
Device A
Eth1/0/1
Eth1/0/2
Server
Marketing dept.
Intermediate device
Device B
Destination device
Device C
Eth1/0/1 Eth1/0/2 Eth1/0/1
Eth1/0/2
Source port Monitor portReflector portCommon port
Eth1/0/3
Configuration procedure
1. Configure Device A (the source device)
# Create a remote source group.
<DeviceA> system-view
139