Operation Manual – Mirroring 
Quidway S3900 Series Ethernet Switches  Chapter 1  Mirroring Configuration
 
Huawei Technologies Proprietary 
1-8 
 
Operation  Command  Description 
Enter Ethernet port 
view of the destination 
port 
interface  interface-type 
interface-number 
— 
Define the current port 
as the destination port 
mirroring-group group-id 
monitor-port 
Required  
LACP and TCP must be 
disabled on the destination 
port 
Exit current view 
quit 
— 
Enter Ethernet port 
view of the source port 
interface  interface-type 
interface-number 
— 
Configure the source 
port and specify the 
direction of the 
packets to be mirrored  
mirroring-group group-id 
mirroring-port  {  both | 
inbound | outbound } 
Required  
Display parameter 
settings of the 
mirroring  
display mirroring-group 
{ all | local } 
Required  
This  command can be 
executed in any view. 
 
III. Configuring port mirroring in system view 
Table 1-8 Configure port mirroring in system view 
Operation  Command  Description 
Enter system view  
system-view 
— 
Create a port mirroring 
group  
mirroring-group  group-id 
local 
Required 
Configure the 
destination port  
mirroring-group group-id 
monitor-port monitor-port 
Required 
LACP and TCP must be 
disabled on the 
destination port. 
Configure the source 
port and specify the 
direction of the 
packets to be mirrored  
mirroring-group group-id 
mirroring-port 
mirroring-port-list  {  both | 
inbound | outbound } 
Required 
Display parameter 
settings of the 
mirroring  
display mirroring-group { all | 
local } 
Optional 
This  command can be 
executed in any view.