232
Task
Command
Display mirroring group information.
display mirroring-group
{
group-id
|
all
|
local
|
remote-destination
|
remote-source
}
Port mirroring configuration examples
Local port mirroring configuration example (in source port
mode)
Network requirements
As shown in
, configure local port mirroring in source port mode to enable the server to
monitor the bidirectional traffic of the Marketing department and the Technical department.
Figure 64 Network diagram
Configuration procedure
# Create local mirroring group 1.
<Device> system-view
[Device] mirroring-group 1 local
# Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as source ports for local mirroring group
1.
[Device] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 gigabitethernet 1/0/2
both
# Configure GigabitEthernet 1/0/3 as the monitor port for local mirroring group 1.
[Device] mirroring-group 1 monitor-port gigabitethernet 1/0/3
# Disable the spanning tree feature on the monitor port (GigabitEthernet 1/0/3).
[Device] interface gigabitethernet 1/0/3
[Device-GigabitEthernet1/0/3] undo stp enable
[Device-GigabitEthernet1/0/3] quit
Verifying the configuration
# Verify the mirroring group configuration.
Device
GE1/0/1
GE1/0/2
GE1/0/3
Server
Marketing Dept.
Technical Dept.
Source port
Monitor port