Monitoring and Analyzing Switch Operation
Traffic Mirroring
1.
2. Enter the mirror < session-# > [ name < session-name >] port < port-# >
3. Determine the traffic direction and traffic to be selected by any of the
4. Enter the monitor command to assign one or more source interfaces to the
After you complete step 4, the switch begins mirroring traffic to the configured
exit port. The next two sections provide a quick reference to the configuration
commands for a local mirroring session.
Quick Reference to Local Mirroring Set-Up. The following commands
configure mirroring for a local session in which the mirroring source and
destination are on the same switch. For command syntax details, refer to the
pages listed with each heading.
■
■
Configure a Local Mirroring Session (Page B-35):
Mirror-Session Number, Local Exit Port, and (Optional) Session Name
The no mirror <session-#> command removes the mirroring session and any
mirroring source previously assigned to that session by the following com
mands.
Configure Traffic-Direction Criteria to Select Traffic (Page B-36):
B-34
Determine the session and local destination port:
•
Session number (1-4) and (optional) alphanumeric name
•
Exit port (any port on the switch except a monitored interface used
to mirror traffic)
command to configure the session.
following methods and the appropriate configuration level (port, trunk,
switch):
–
Direction: inbound, outbound, or both
–
Classifier-based mirroring policy: inbound only for IPv4 or IPv6
traffic
–
MAC source and/or destination address: inbound, outbound, or
both
session.
The mirror command identifies the destination in a mirroring session.
The interface and vlan commands identify the mirroring source, including
source interface, traffic direction, and traffic-selection criteria for a spec
ified session.
[no] mirror < 1 - 4 > port < exit-port-# > [ name < name-str >]
[no] < interface < port/trunk/mesh > | vlan < vid-# >>
monitor all < in | out | both > mirror < session > [< session > ... ] [no-tag-added]