444 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 {
interface
} [rx
| tx | both]
Configure a source (monitored) port or CPU interface for
a monitor session.

session_number

—The monitoring session ID, which is
always 1.
interface
—The interface to be monitored.
• rx | tx — Monitor ingress (rx) or egress (tx) traffic. If no
parameter is given, both ingress and egress traffic are
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.