Other functions supported by port mirroring, Configuring local port mirroring – H3C Technologies H3C WX6000 Series Access Controllers User Manual
Page 459
![background image](https://www.manualsdir.com/files/812993/content/doc459.png)
50-3
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:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a local mirroring group
mirroring-group group-id local
Required
In system view
mirroring-group group-id
mirroring-port mirroring-port-list
{ both |
inbound
| outbound }
interface
interface-type
interface-number
[ mirroring-group group-id ]
mirroring-port
{ both | inbound |
outbound
}
Add ports to
the port
mirroring
group as
source ports
In interface
view
quit
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 system view
mirroring-group group-id monitor-port
monitor-port-id
interface
interface-type
interface-number
Add a port to
the mirroring
group as the
destination
port
In interface
view
[ mirroring-group group-id ]
monitor-port
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.
z
A local mirroring group is effective only when it has both source ports and the destination port
configured.
z
It is not recommended to enable STP, RSTP or MSTP on the destination port; otherwise, the
mirroring function may be affected.
z
Do not use the destination mirroring port for any purpose other than port mirroring.
z
The source ports and the destination port cannot be the member ports of the current mirroring
group.
z
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.