1-10
Use the local port mirroring function to meet the requirement. Perform the following configurations on
Switch C.
z Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as mirroring source ports.
z Configure GigabitEthernet 1/0/3 as the mirroring destination port.
Figure 1-3 Network diagram for local port mirroring
Switch C
Data dete ction device
R&D
department Switch A
Switch B
GEth1/0/2
GEth1/0/1
GEth1/0/3
Marketing
department
Configuration procedure
Configure Switch C:
# Create a local mirroring group.
<device> system-view
[device] mirroring-group 1 local
# Configure the source ports and destination port for the local mirroring group.
[device] mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 GigabitEthernet 1/0/2 both
[device] mirroring-group 1 monitor-port GigabitEthernet 1/0/3
# Display configuration information about local mirroring group 1.
[device] display mirroring-group 1
mirroring-group 1:
type: local
status: active
mirroring port:
GigabitEthernet1/0/1 both
GigabitEthernet1/0/2 both
mirroring mac:
mirroring vlan:
monitor port: GigabitEthernet1/0/3
After the configurations, you can monitor all packets received on and sent from the R&D department
and the marketing department on the data detection device.
Remote Port Mirroring Configuration Example
Network requirements
The departments of a company connect to each other through switches, as shown in Figure 1-4:
z Switch A, Switch B, and Switch C are WX3000 series devices.