To do… Use the command… Remarks
Configure mirroring CPUs
mirroring-group group-id
mirroring-cpu slot slot-number-list
{ both | inbound | outbound }
Required
By default, no mirroring CPU is
configured for a mirroring group.
Configuring the monitor port for the local mirroring group
You can configure the monitor port for a mirroring group in system view, or assign the current port to a
mirroring group as the monitor port in interface view. The two modes lead to the same result.
Configuring the monitor port in system view
Follow these steps to configure the monitor port of a local mirroring group in system view:
To do… Use the command… Remarks
Enter system view system-view —
Configure the monitor port
mirroring-group group-id
monitor-port monitor-port-id
Required
By default, no monitor port is
configured for a mirroring group.
Configuring the monitor port in interface view
Follow these steps to configure the monitor port of a local mirroring group in interface view:
To do… Use the command… Remarks
Enter system view system-view —
Enter interface view
interface interface-type
interface-number
—
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 mirroring
group.
NOTE:
• A mirroring group contains only one monitor port.
• To ensure that the port mirroring function works properly, do not enable STP, MSTP, or RSTP on the
monitor port.
• HP recommends you use a monitor port only for port mirroring to ensure that the data monitorin
device
receives and analyzes only the mirrored traffic rather than a mix of mirrored traffic and normally
forwarded traffic.
130