231
Step
Command
Remarks
2.
Configure source CPUs
for a local mirroring
group.
•
In standalone mode:
mirroring-group group-id
mirroring-cpu slot slot-number-list
{
both
|
inbound
|
outbound
}
•
In IRF mode:
mirroring-group group-id
mirroring-cpu chassis
chassis-number
slot slot-number-list
{
both
|
inbound
|
outbound
}
By default, no source CPU is
configured for a local
mirroring group.
Configuring the monitor port for a local mirroring group
On the source device, configure the tunnel interface as the monitor port. On the destination device,
configure the port that connects to a data monitoring device as the monitor port.
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 a 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:
•
A mirroring group contains only one monitor port.
•
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
.
•
As a best practice, 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 local
mirroring group.
mirroring-group group-id
monitor-port
By default, a port does not act as
the monitor port for any local
mirroring groups.
Displaying and maintaining port mirroring
Execute
display
commands in any view.