Local port mirroring configuration example
Network requirements
As shown in
traffic of the Marketing department and the Technical department.
Figure 63 Network diagram
Configuration procedure
# Create local mirroring group 1.
<Device> system-view
[Device] mirroring-group 1 local
# Configure GigabitEthernet 2/0/1 and GigabitEthernet 2/0/2 as source ports for local mirroring
group 1.
[Device] mirroring-group 1 mirroring-port gigabitethernet 2/0/1 gigabitethernet 2/0/2
both
# Configure GigabitEthernet 2/0/3 as the monitor port for local mirroring group 1.
[Device] mirroring-group 1 monitor-port gigabitethernet 2/0/3
Verifying the configuration
# Verify the mirroring group configuration.
[Device] display mirroring-group all
Mirroring group 1:
Type: Local
Status: Active
Mirroring port:
GigabitEthernet2/0/1
GigabitEthernet2/0/2
Monitor port: GigabitEthernet2/0/3
Figure
63, configure local port mirroring to enable the server to monitor the bidirectional
Both
Both
206