426 Monitoring Switch Traffic
Configuring Port Mirroring
Use the following commands in Privileged EXEC mode to configure a port 
mirroring session. 
Command Purpose
configure Enter Global Configuration mode
monitor session 
session_number
 source 
interface {cpu | 
interface
} [rx | tx] 
Configure a source (monitored) port or CPU interface for 
a monitor session.
•
session_number
 —The monitoring session ID, which is 
always 1.
•
interface
—The Ethernet interface to be monitored.
• rx | tx — Monitor ingress (rx) or egress (tx) traffic. If you 
not specify, both ingress and egress traffic is monitored.
monitor session 
session_number
 
destination interface 
interface
Configure a destination (probe) port for a monitor session.
•
session_number
 —The monitoring session ID, which is 
always 1.
•
interface
—The Ethernet interface to which the 
monitored source traffic is copied.
exit Exit to Privileged EXEC mode.
show monitor session 1 View information about the configured port mirroring 
session.