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
exit
show monitor session 1
426
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.
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