
B-56
Monitoring and Analyzing Switch Operation
Traffic Mirroring
ACL (Access Control List) Selection Criteria for Mirroring from a
VLAN Interface.
Syntax:
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 >]
This command assigns a mirroring source to a previously
configured mirroring session on a source switch. It specifies the
VLAN source to use, the (previously configured) ACL to use for
selecting traffic to mirror, and the session identifier. Use this
option when you want to mirror selected IP traffic entering the
switch on a specific VLAN.
The
no
form of the command removes the mirroring source
assigned to the session, but does not remove the session itself.
This enables you to repurpose a a session by removing an
unwanted mirroring source and adding another in its place.
< vlan
vid-#
>:
Configures the VLAN on which inbound traffic
is filtered and mirrored by the specified ACL.
monitor ip access-group <
acl-name
> in:
For the interface
specified by
< vid-#>
, selects the IP traffic to mirror based on
the selection criteria specified in the named ACL. (The ACL
must be already be configured on the switch. Refer to “ACL
Operation for Mirroring Applications” on page B-53.)
(Using
monitor
without mirroring criteria or session
number affects session 1. Refer to “Monitor Command” on
page B-76.)
<
acl-name
>
:
For traffic entering the switch on the
specified interface, mirror the IP traffic having a
match with the
permit
ACEs in the named ACL. (IP
traffic matching a
deny
ACE, including the implicit
deny any
or
deny any any
in the named ACL is dropped.)
—
Continued
—
3500-5400-6200-8200-MCG-Jan08-K_13_01.book Page 56 Monday, January 28, 2008 10:04 AM