Configuring the monitor port for the local mirroring group
CAUTION:
Do not enable the spanning tree feature on the monitor port.
Either you can configure the monitor port for a mirroring group in system view, or you can assign the
current port to a mirroring group as the monitor port in interface view. The two methods lead to the same
result.
Configuration restrictions and guidelines
When you configure the monitor port for a local mirroring group, follow these restrictions and guidelines:
A mirroring group contains only one monitor port.
•
•
HP recommends that you use a monitor port for port mirroring only. 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 other traffic.
For Layer 3 port mirroring, the device can only mirror information about Layer 3 and upper layers
•
of packets but cannot mirror Layer 2 information, with the source MAC address as local device
MAC address, and the destination MAC address 00-0F-E2-41-5E-5B.
Configuring the monitor port
Step
1.
Enter system view.
2.
Configure the monitor port.
Configuring local port mirroring by using the mirror command
Step
1.
Enter system view.
2.
Enter interface view.
3.
Mirror the traffic on the
interface to another local
interface.
Command
system-view
•
(Method 1) In system view:
mirroring-group group-id
monitor-port monitor-port-id
•
(Method 2) In interface view:
a.
interface interface-type
interface-number
b.
[ mirroring-group
group-id ] monitor-port
Command
system-view
interface interface-type interface-number
mirror number number { all | in | out } to
local-interface interface-type
interface-number [ mac H-H-H ]
168
Remarks
N/A
Use either method.
By default, no monitor port is
configured for a local mirroring
group.
By default, a port is not the monitor
port of any local mirroring group.
Remarks
N/A
N/A
By default, the traffic on
an interface is not
mirrored.