1-9 
Network diagram 
Figure 1-3 Network diagram for local port mirroring 
 
 
Configuration procedure 
Configure Switch C: 
# Create a local mirroring group. 
<Sysname> system-view 
[Sysname] mirroring-group 1 local 
# Configure the source ports and destination port for the local mirroring group. 
[Sysname] mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 GigabitEthernet 
1/0/2 both 
[Sysname] mirroring-group 1 monitor-port GigabitEthernet 1/0/3 
# Display configuration information about local mirroring group 1. 
[Sysname] display mirroring-group 1 
mirroring-group 1: 
    type: local 
    status: active 
    mirroring port: 
        GigabitEthernet1/0/1  both 
        GigabitEthernet1/0/2  both 
    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 Switch 4200G series: 
z   Switch A, Switch B, and Switch C are Switch 4200G series.