186
Displaying and maintaining port mirroring
Execute display commands in any view.
Task Command
Display mirroring group information.
display mirroring-group { group-id | all | local |
remote-destination | remote-source }
Local port mirroring configuration example
Network requirements
As shown in Figure 62, configure local port mirroring in source port mode so the server can monitor the
bidirectional traffic of the Marketing department and the Technical department.
Figure 62 Network diagram
Configuration procedure
# Create local mirroring group 1.
<Device> system-view
[Device] mirroring-group 1 local
# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 as source ports, and port
Ten-GigabitEthernet 1/0/3 as the monitor port for local mirroring group 1.
[Device] mirroring-group 1 mirroring-port ten-gigabitethernet 1/0/1 ten-gigabitethernet
1/0/2 both
[Device] mirroring-group 1 monitor-port ten-gigabitethernet 1/0/3
# Disable the spanning tree feature on the monitor port Ten-GigabitEthernet 1/0/3.
[Device] interface ten-gigabitethernet 1/0/3
[Device-Ten-GigabitEthernet1/0/3] undo stp enable