233
[Device] display mirroring-group all
Mirroring group 1:
Type: Local
Status: Active
Mirroring port:
GigabitEthernet1/0/1 Both
GigabitEthernet1/0/2 Both
Monitor port: GigabitEthernet1/0/3
Local port mirroring configuration example (in source CPU
mode)
Network requirements
, GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 are located on the card in
slot 1.
Configure local port mirroring in source CPU mode to enable the server to monitor all packets
matching the following criteria:
•
Received and sent by the Marketing department and the Technical department.
•
Processed by the CPU of the card in slot 1 of the device.
Figure 65 Network diagram
Configuration procedure
# Create local mirroring group 1.
<Device> system-view
[Device] mirroring-group 1 local
# Configure the CPU of the card in slot 1 of the device as a source CPU for local mirroring group 1.
[Device] mirroring-group 1 mirroring-cpu slot 1 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
GE1/0/1
GE1/0/2
GE1/0/3
Server
Marketing Dept.
Technical Dept.
Source port
Monitor port