Figure 56 Network diagram
Configuration procedure
# Create local mirroring group 1.
<DeviceA> system-view
[DeviceA] mirroring-group 1 local
# Configure Ethernet 1/1 and Ethernet 1/2 as source ports, and configure port Ethernet 1/3 as the
monitor port.
[DeviceA] mirroring-group 1 mirroring-port ethernet 1/1 ethernet 1/2 both
[DeviceA] mirroring-group 1 monitor-port ethernet 1/3
# Disable the spanning tree feature on the monitor port Ethernet 1/3.
[DeviceA] interface ethernet 1/3
[DeviceA-Ethernet1/3] undo stp enable
[DeviceA-Ethernet1/3] quit
Verifying the configuration
# Display the configuration of all mirroring groups.
[DeviceA] display mirroring-group all
mirroring-group 1:
type: local
status: active
mirroring port:
Ethernet1/1
Ethernet1/2
mirroring vlan:
mirroring CPU:
monitor port: Ethernet1/3
You can monitor all the packets received and sent by the marketing department and the technical
department on the server.
both
both
170