N8406-023 1Gb Intelligent L3 Switch Command Reference Guide (ISCLI) 142
Port mirroring
Port Mirroring is used to configure, enable, and disable the monitored port. When enabled, network packets being
sent and/or received on a target port are duplicated and sent to a monitor port. By attaching a network analyzer to
the monitor port, you can collect detailed information about your network performance and usage. Port mirroring is
disabled by default.
NOTE:
See the ―Troubleshooting tools‖ appendix in the
N8406-023 1Gb Intelligent L3 Switch Application
Guide
for information on how to use port mirroring.
The following table describes the Port Mirroring Configuration commands.
Table 170 Port Mirroring Configuration commands
Command
Description
[no] port-mirroring
enable
Enables or disables port mirroring. The default is disabled.
Command mode:
Global configuration
show port-mirroring
Displays current settings of the mirrored and monitoring ports.
Command mode:
All
Port-based port mirroring
The following table describes the port-based Port Mirroring Configuration commands.
Table 171 Port Mirroring Configuration commands
Command
Description
port-mirroring monitor-port
<port
number>
mirroring-port
<port number>
{in|out|both}
Adds the port to be mirrored. This command also allows
you to enter the direction of the traffic. It is necessary to
specify the direction because:
If the source port of the frame matches the mirrored
port and the mirrored direction is ingress or both
(ingress and egress), the frame is sent to the mirrored
port.
If the destination port of the frame matches the
mirrored port and the mirrored direction is egress or
both, the frame is sent to the monitoring port.
Command mode:
Global configuration
no port-mirroring monitor-port
<port
number>
mirroring-port
<port number>
Removes the mirrored port.
Command mode:
Global configuration
no port-mirroring monitor-port
<port
number>
Deletes this monitor port.
Command mode:
Global configuration
show port-mirroring
Displays the current settings of the monitoring port.
Command mode:
All