222
Configuring the monitor port for the local mirroring group
To configure the monitor port for a mirroring group, use one of the following methods:
•
Configure the monitor port for the mirroring group in system view.
•
Assign a port to the mirroring group as the monitor port in interface view.
Configuration restrictions and guidelines
When you configure the monitor port for a local mirroring group, follow these restrictions and
guidelines:
•
Do not enable the spanning tree feature on the monitor port.
•
For port mirroring to operate correctly, do not configure an EVB-enabled port as the monitor port.
For more information about EVB, see
EVB Configuration Guide
.
•
For a Layer 2 aggregate interface configured as the monitor port of a mirroring group, do not
configure its member ports as source ports of the mirroring group.
•
A mirroring group contains only one monitor port.
•
Use a monitor port only for port mirroring, so the data monitoring device receives only the
mirrored traffic.
Configuring the monitor port in system view
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure the monitor port
for a local mirroring group.
mirroring-group group-id
monitor-port interface-type
interface-number
By default, no monitor port is
configured for a local mirroring
group.
Configuring the monitor port in interface view
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Configure the port as the
monitor port for a mirroring
group.
mirroring-group group-id
monitor-port
By default, a port does not act as
the monitor port for any local
mirroring groups.
Configuring Layer 2 remote port mirroring
To configure Layer 2 remote port mirroring, perform the following tasks:
•
Configure a remote source group on the source device.
•
Configure a cooperating remote destination group on the destination device.
•
If intermediate devices exist, configure the following devices and ports to allow the remote
probe VLAN to pass through.
Intermediate devices.
Ports connected to the intermediate devices on the source and destinations devices.
When you configure Layer 2 remote port mirroring, follow these restrictions and guidelines:
•
The egress port must be assigned to the remote probe VLAN. The configurable reflector port is
not necessarily assigned to the remote probe VLAN.