Reference Guide

Switch commands 3 Configuration commands
152 NN47928-107
switch mirror
Use this command to configure port mirroring. Port mirroring duplicates
traffic from one or several source ports to a destination port. The following
port traffic can be mirrored:
z Outgoing traffic only
z Both incoming and outgoing traffic.
Port mirroring is intended for troubleshooting only. After its use is
complete, remove the port mirroring configuration immediately so that unit
performance is not degraded.
Port mirroring applies to LAN ports only. Also, the mirroring port and the
port being mirrored have the same speed.
Syntax config switch mirror port [0 [MII]|1|2|3|4] mirror [1|2|3|4]
dir [both|out|none]
Parameters
port 0 MII|1|2|3|4 Enter the port number for which traffic is
mirrored.
mirror 1|2|3|4 Enter the destination port for the mirrored
traffic. If mirroring is currently taking place,
the default is the current destination port.
dir both|out|none Enter the direction of traffic to mirror.
Example This example configures mirroring so that both incoming and outgoing
traffic for port 2 is mirrored to port 3.
> config switch mirror 2 mirror 3 dir both
Related
commands
del switch mirror
display switch mirror
show switch mirror