Management and Configuration Guide K/KA/KB.15.15

Configures the MAC address as selection criteria for mirroring traffic on any port or learned VLAN
on the switch.
Specifies how the MAC address is used to filter and mirror packets in
inbound and/or outbound traffic on the interfaces on which the mirroring
session is applied:
src | dest | both
src: Mirrors all packets in inbound traffic that contain the specified
MAC address as source address.
dest: Mirrors all packets in outbound traffic that contain the
specified MAC address as destination address.
NOTE: The MAC address of the switch is not supported as either the
source or destination MAC address used to select mirrored traffic.
both: Mirrors all packets in both inbound and outbound traffic that
contain the specified MAC address as either source or destination
address.
Assigns the inbound and/or outbound traffic filtered by the specified
MAC address to a previously configured mirroring session. The session
is identified by a number or (if configured) a name.
mirror [ 1 - 4 |
name-str ]
Depending on how many sessions are configured on the switch, you
can use the same command to configure a MAC address as mirroring
criteria in up to four sessions. To identify a session, you can enter either
its name or number; for example: mirror 1 2 3 traffsrc4
1 - 4 : Specifies a mirroring session by number, for which the
configured MAC address is used to select and mirror inbound and/or
outbound traffic.
Packets that are sent or received on an interface configured with a mirroring session
and that contain the MAC address as source and/or destination address are
mirrored to a previously configured destination device.
To remove a MAC address as selection criteria in a mirroring session, you must
enter the complete Command syntax, for example, no monitor mac
998877-665544 dest mirror 4.
The no form of the command removes the MAC address as a mirroring criteria
from an active session, but does not remove the session itself. This enables you to
repurpose a session by removing an unwanted mirroring criteria and adding another
in its place.
Configuring classifier-based mirroring
For more information and a list of general steps for the process beginning with this command, see
the information about restrictions on classifier-based mirroring.
Context: Global configuration
Syntax
[ no ] class [ ipv4 | ipv6 classname ]
Defines the name of a traffic class and specifies whether a policy is to be applied
to IPv4 or IPv6 packets, where classname is a text string (64 characters maximum.)
After you enter the class command, you enter the class configuration context to
specify match criteria. A traffic class contains a series of match and ignore
commands, which specify the criteria used to classify packets.
To configure a default traffic class, use the default-class command as described
below. A default class manages the packets that do not match the match/ignore
criteria in any other classes in a policy.
Configuring classifier-based mirroring 329