
B-43
Monitoring and Analyzing Switch Operation
Traffic Mirroring
To Configure VLAN Mirroring on a Source Switch:
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 specified mirroring session has
already been configured with the
name < name-str >
option in the
mirror
command.
The
no
command form removes
vlan <
vid-#
>
mirroring source from the
specified session, but leaves the session available for other assignments.
N o t e
If session 1 is already configured with a destination, you can execute
[no] vlan
< vid > monitor
or
[no] interface < port > monitor
without mirroring criteria and a
mirror session number. In this case, the switch automatically configures or
removes mirroring for inbound and outbound traffic from the specified VLAN
or port(s) to the destination configured for session 1.
To Configure or Remove MAC-based Mirroring on a Source Switch for Remote
Sessions (Page B-57):
Enter the
monitor mac mirror
command at the global configuration level.
Use the
no
form of the complete command syntax (for example,
no monitor
mac 112233-445566 src mirror 3
) to remove a MAC address as mirroring criteria
from an active session on the switch without removing the session itself.
[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
>]
[no] monitor mac <
mac-addr
> < src | dest | both > 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 43 Monday, January 28, 2008 10:04 AM