Mirroring Configuration
Complete the following tasks to configure mirroring:
Task
Remarks
Configuring Local Port Mirroring
Optional
Configuring Remote Port Mirroring
Optional
On a Switch 4500, only one destination port for local port mirroring and only one reflector port can be
configured, and the two types of ports cannot both exist.
Configuring Local Port Mirroring
Configuration prerequisites
z
The source port is determined and the direction in which the packets are to be mirrored is
determined.
z
The destination port is determined.
Configuration procedure
Follow these steps to configure port mirroring on Switch 4500 series:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a port mirroring
group
mirroring-group group-id local
Required
Enable port mirroring – STP
collaboration
mirroring stp-collaboration
Optional
This configuration applies to all
ports of the current device.
By default, port mirroring – STP
collaboration is not enabled.
In system
view
mirroring-group group-id
mirroring-port mirroring-port-list
{
both
|
inbound
|
outbound
}
interface
interface-type
interface-number
mirroring-group group-id
mirroring-port
{
both
|
inbound
|
outbound
}
Configure the
source port
for the port
mirroring
group
In port view
quit
Use either approach
You can configure multiple
source ports at a time in system
view, or you can configure the
source port in specific port view.
The configurations in the two
views have the same effect.
Configure the
destination
In system
view
mirroring-group group-id
monitor-port monitor-port-id
Use either approach
The configurations in the two
46-4