Network diagram
Configuration procedure
Use the local port mirroring function to meet the requirement. Perform the
following configurations on Switch C.
Configure Ethernet 1/0/1 and Ethernet 1/0/2 as mirroring source ports.
■
Configure Ethernet 1/0/3 as the mirroring destination port.
■
Figure 98 Network diagram for local port mirroring
R&D
Switch A
department
Marketing
Switch B
department
Configure Switch C:
# Create a local mirroring group.
<4210> system-view
[4210] mirroring-group 1 local
# Configure the source ports and destination port for the local mirroring group.
[4210] mirroring-group 1 mirroring-port Ethernet 1/0/1 Ethernet 1/0/2 both
[4210] mirroring-group 1 monitor-port Ethernet 1/0/3
# Display configuration information about local mirroring group 1.
[4210] display mirroring-group 1
mirroring-group 1:
type: local
status: active
mirroring port:
Ethernet1/0/1
Ethernet1/0/2
monitor port: Ethernet1/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.
Mirroring Configuration Example
Eth1/0/1
Eth1/0/3
Eth1/0/2
Switch C
both
both
Data detection
device
315