Configuration restrictions and guidelines, Configuring the monitor port – H3C Technologies H3C MSR 50 User Manual
Page 186

Step Command
Remarks
•
(Method 1) In system view:
mirroring-group group-id
mirroring-port
mirroring-port-list { both |
inbound | outbound }
Use either method.
By default, no source port is
configured for a local mirroring
group.
•
(Method 2) In interface view:
446.
Configure source ports.
a.
interface interface-type
interface-number
By default, a port is not a source
port of any local mirroring group.
b.
mirroring-group group-id
mirroring-port { both |
inbound | outbound }
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.
•
H3C 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 Command
Remarks
447.
Enter system view.
system-view
N/A
•
(Method 1) In system view:
mirroring-group group-id
monitor-port monitor-port-id
Use either method.
By default, no monitor port is
configured for a local mirroring
group.
•
(Method 2) In interface view:
448.
Configure the monitor port.
a.
interface interface-type
interface-number
By default, a port is not the monitor
port of any local mirroring group.
b.
[ mirroring-group
group-id ] monitor-port
173