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