Mirroring Configuration Example 315
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.
Network diagram Figure 98 Network diagram for local port mirroring
Configuration procedure 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 both
Ethernet1/0/2 both
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.
Switch C
Data detection
device
R& D
department
Switch A
Switch B
Eth1/0/2
Eth1/0/1
Eth1/ 0/3
Marketing
department