Configuring Local Port Mirroring 897
Destination device contains destination mirroring port, and remote destination 
port mirroring groups are created on destination devices. Upon receiving a 
mirrored packet, the destination device checks to see if the VLAN ID of the 
received packet is the same as that of the remote mirroring VLAN of the remote 
destination port mirroring group. If yes, the destination device forwards the packet 
to the monitoring device through the destination mirroring port.
Other Functions
Supported by Port
Mirroring
In addition, in a port mirroring group, a destination port can monitor multiple 
source ports simultaneously in the mirroring group.
Configuring Local Port 
Mirroring
Follow these steps to configure local port mirroring:
n
■ A local mirroring group is effective only when it has both source ports and the 
destination port configured.
■ It is not recommended to enable STP, RSTP or MSTP on the destination port; 
otherwise, the mirroring function may be affected.
■ Do not use the destination mirroring port for any purpose other than port 
mirroring.
■ The source ports and the destination port cannot be the member ports of the 
current mirroring group.
■ Before adding the destination port for a port mirroring group, make sure the 
port mirroring group exists. A mirroring group can have only one destination 
port.
To do… Use the command…  Remarks 
Enter system view system-view - 
Create a local mirroring group mirroring-group group-id 
local 
Required 
Add ports to 
the port 
mirroring 
group as 
source ports 
In system view  mirroring-group group-id 
mirroring-port 
mirroring-port-list { both | 
inbound | outbound } 
Use either approach.
You can add ports to a port 
mirroring group as source 
ports in either system view or 
interface view.
In system view, you can add 
multiple ports to a port 
mirroring group at one time. 
While in interface view, you 
can only add the current port 
to a port mirroring group. 
In interface 
view 
interface interface-type 
interface-number
[ mirroring-group group-id ] 
mirroring-port { both | 
inbound | outbound }
quit
Add a port to 
the mirroring 
group as the 
destination 
port 
In system view  mirroring-group group-id 
monitor-port 
monitor-port-id 
Use either approach.
You can add a destination 
port to a port mirroring group 
in either system view or 
interface view. They achieve 
the same purpose. 
In interface 
view 
interface interface-type 
interface-number
[ mirroring-group group-id ] 
monitor-port