– 473 –
14 Port Mirroring Commands
Data can be mirrored from a local port on the same switch or from a remote port on
another switch for analysis at the target port using software monitoring tools or a
hardware probe. This switch supports the following mirroring modes.
Local Port Mirroring Commands
This section describes how to mirror traffic from a source port to a target port.
port monitor This command configures a mirror session. Use the no form to clear a mirror
session.
Syntax
port monitor {interface [rx | tx | both] | vlan vlan-id |
mac-address mac-address | access-list acl-name}
no port monitor {interface | vlan vlan-id |
mac-address mac-address | access-list acl-name}
interface
ethernet unit/port (source port)
unit - Unit identifier. (Range: 1-8)
port - Port number. (Range: 1-28/52)
rx - Mirror received packets.
tx - Mirror transmitted packets.
Table 84: Port Mirroring Commands
Command Function
Local Port Mirroring Mirrors data to another port for analysis without affecting the data passing
through or the performance of the monitored port
RSPAN Mirroring Mirrors data from remote switches over a dedicated VLAN
Table 85: Mirror Port Commands
Command Function Mode
port monitor Configures a mirror session IC
show port monitor Shows the configuration for a mirror port PE