1-12 
z  If you mirror traffic to a port, you must configure a monitor port with the mirroring-group 
monitor-port command or the monitor-port command. For information about the two commands, 
refer to the part talking about mirroring.  
z  Traffic mirroring and local port mirroring share the same monitor port.  
Related commands: display qos-interface mirrored-to. 
Examples 
# Configure traffic mirroring on Ethernet 1/0/1, duplicating the inbound packets sourced from IP 
address 1.1.1.1 to Ethernet 1/0/4. 
<Sysname> system-view 
System View: return to User View with Ctrl+Z. 
[Sysname] acl number 2000 
[Sysname-acl-basic-2000] rule permit source 1.1.1.1 0 
[Sysname-acl-basic-2000] quit 
[Sysname] interface Ethernet 1/0/4 
[Sysname-Ethernet1/0/4] monitor-port 
[Sysname-Ethernet1/0/4] quit 
[Sysname] interface Ethernet 1/0/1 
[Sysname-Ethernet1/0/1] mirrored-to inbound ip-group 2000 monitor-interface 
[Sysname-Ethernet1/0/1] quit 
# Configure traffic mirroring on Ethernet 1/0/2, duplicating the inbound packets matching ACL 2000 to 
the CPU.  
[Sysname] interface Ethernet 1/0/2 
[Sysname-Ethernet1/0/2] mirrored-to inbound ip-group 2000 cpu 
[Sysname-Ethernet1/0/2] return 
# Display the traffic mirroring configuration of Ethernet 1/0/1 and Ethernet 1/0/2.  
<Sysname> display qos-interface Ethernet 1/0/1 mirrored-to 
Ethernet1/0/1: mirrored-to 
 Inbound: 
   Matches: Acl 2000 rule 0  running 
     Mirrored to: monitor interface 
<Sysname> display qos-interface Ethernet 1/0/2 mirrored-to 
Ethernet1/0/2: mirrored-to 
 Inbound: 
   Matches: Acl 2000 rule 0  running 
     Mirrored to: cpu 
priority 
Syntax 
priority priority-level 
undo priority