
B-40
Monitoring and Analyzing Switch Operation
Traffic Mirroring
Quick Reference to Local Mirroring Set-Up
These commands configure or remove mirroring where the mirroring source
and destination are on the same switch. For command syntax details, refer to
the pages listed after each heading. For each mirroring Source Switch option:
■
The
mirror
command identifies the destination for the mirroring session.
■
The
interface
and
vlan
commands identify the mirroring source; that is, the
interface type, the traffic to mirror, and the mirroring session to use.
To Configure or Remove a Local Mirroring Session
Mirroring Session Number, Exit Port, and (Optional) Session Name (Page
The
no
form of the command removes the mirroring session and any mirroring
source previously assigned to that session by the following commands.
To Configure or Remove Mirroring on Port/Trunk/Mesh Interfaces for Local Ses-
sions:
Directional Criteria Selects Traffic To Mirror (Page B-50).
Inbound ACL Criteria Selects Traffic To Mirror (Page B-54).
The
< name-str >
option applies only if the specified mirroring session has
already been configured with the
name < name-str >
option in the
mirror
command.
The
no
form of the command removes the
<
port/trunk/mesh
>
mirroring source
from the specified session, but leaves the session available for other assign-
ments.
To Configure or Remove Mirroring on VLAN Interfaces for Local Sessions:
Directional Criteria Selects Traffic To Mirror (Page B-52)
Inbound ACL Criteria Selects Traffic To Mirror (Page B-56).
The
< name-str >
option applies only if the mirroring session has already been
configured with the
name < name-str >
option in the
mirror
command.
mirror < 1 - 4 > port <
port-#
> [ name <
name-str
>]
no mirror < 1 - 4 >
[no] interface <
port/trunk/mesh
> monitor all < in | out | both > mirror
< 1 - 4 |
name-str
> [< 1 - 4 |
name-str
> < 1 - 4 |
name-str
> < 1 - 4 |
name-str
>]
[no] interface <
port/trunk/mesh
> monitor ip access-group <
acl-name
> in mirror
< 1 - 4 |
name-str
> [< 1 - 4 |
name-str
> < 1 - 4 |
name-str
> < 1 - 4 |
name-str
>]
[no] vlan <
vid-#
> monitor all < in | out | both > mirror < 1 - 4 |
name-str
>
[< 1 - 4 |
name-str
> < 1 - 4 |
name-str
> < 1 - 4 |
name-str
>]
[no] vlan <
vid-#
> monitor ip access-group <
acl-name
> in mirror < 1 - 4 |
name-str
>
[< 1 - 4 |
name-str
> < 1 - 4 |
name-str
> < 1 - 4 |
name-str
>]
3500-5400-6200-8200-MCG-Jan08-K_13_01.book Page 40 Monday, January 28, 2008 10:04 AM