C
HAPTER
32
| Port Mirroring Commands
Local Port Mirroring Commands
– 798 –
◆ When enabled for an interface, default mirroring is for both received
and transmitted packets.
COMMAND MODE
Interface Configuration (Ethernet, destination port)
COMMAND USAGE
◆ You can mirror traffic from any source port to a destination port for
real-time analysis. You can then attach a logic analyzer or RMON probe
to the destination port and study the traffic crossing the source port in
a completely unobtrusive manner.
◆ Set the destination port by specifying an Ethernet interface with the
interface configuration command, and then use the port monitor
command to specify the source of the traffic to mirror.
◆ When mirroring traffic from a port, the mirror port and monitor port
speeds should match, otherwise traffic may be dropped from the
monitor port.
◆ Spanning Tree BPDU packets are not mirrored to the target port.
◆ You can create multiple mirror sessions, but all sessions must share the
same destination port.
EXAMPLE
The following example configures the switch to mirror all packets from port
6 to 11:
Console(config)#interface ethernet 1/11
Console(config-if)#port monitor ethernet 1/6 both
Console(config-if)#
show port monitor This command displays mirror information.
SYNTAX
show port monitor [interface]
interface - ethernet unit/port (source port)
unit - Stack unit. (Range: 1)
port - Port number. (Range: 1-24)
DEFAULT SETTING
Shows all sessions.
COMMAND MODE
Privileged Exec