Monitoring Switch Traffic 391
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.
monitor session 
session_number
 mode
Enable the administrative mode for the configured port 
mirroring session to start sending the traffic from the 
source port to the destination (probe) port.
exit Exit to Privileged EXEC mode.
show monitor session 1 View information about the configured port mirroring 
session.