
96
To do…
Use the command…
Remarks
Configure the current port
as the monitor port
[
mirroring-group
group-id
]
monitor-port
Required
By default, a port does not serve as the monitor
port for any remote destination group.
NOTE:
•
A mirroring group contains only one monitor port.
•
To make sure that the mirroring function works properly, do not enable the spanning tree feature on the
monitor port.
•
H3C recommends you use a monitor port only for port mirroring. This is to make sure that the data
monitoring device receives and analyzes only the mirrored traffic rather than a mix of mirrored traffic
and normally forwarded traffic.
•
You cannot configure the monitor port in a mirroring group as a port in a RRPP ring.
Configuring the remote probe VLAN for the remote destination group
Follow these steps to configure the remote probe VLAN for the remote destination group:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure the remote
probe VLAN
mirroring-group
group-id
remote-probe vlan
rprobe-vlan-id
Required
By default, no remote probe VLAN is
configured for a remote destination group.
NOTE:
•
A VLAN can serve for only one mirroring group.
•
When a VLAN is configured as a remote probe VLAN, use the remote probe VLAN for port mirroring
exclusively. Do not configure a VLAN interface for the VLAN or configure any other features for the
VLAN.
•
When a VLAN is configured as a remote probe VLAN, you must remove the remote probe VLAN
configuration before deleting the VLAN.
•
When you remove the configuration of a remote probe VLAN, an active mirroring group becomes
inactive.
Assigning the monitor port to the remote probe VLAN
Follow these steps to assign the monitor port to the remote probe VLAN:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter the interface view of the monitor
port
interface
interface-type interface-number
—
For an access port
port access vlan
vlan-id
For a trunk port
port trunk permit vlan
vlan-id
Assign the port
to the probe
VLAN
For a hybrid port
port hybrid
vlan
vlan-id
{
tagged
|
untagged
}
Required
Use one of the
commands