class [ipv4|ipv6]
Syntax
class [ipv4|ipv6] <
CLASSNAME
> [no] [seq-number] [match|ignore] <
IP-PROTOCOL
>
<
SOURCE-ADDRESS
> <
DESTINATION-ADDRESS
>][precedence <
PRECEDENCE-VALUE
>][tos <
TOS-
VALUE
>][ip-dscp <
CODEPOINTS
>][vlan <
VLAN-ID
>]
Description
Configures the mirroring policy for inbound traffic on the switch.
Parameters and options
policy mirror
Syntax
policy mirror <
POLICY-NAME
> [no] <
SEQ-NUMBER
> [class [ipv4|ipv6] <
CLASSNAME
> action
mirror <
SESSION
>] [action mirror <
SESSION
>] [no] default-class action mirror
<
SESSION
> [no] [interface <
PORT
/
TRUNK
>| vlan <
VID-#
>] service-policy <
MIRROR-
POLICY-NAME
> in
Description
The
[no] [interface <
PORT
/
TRUNK
>| vlan <
VID-#
>] service-policy <
MIRROR-POLICY-NAME
>
in
command removes the mirroring policy from a port, VLAN, trunk, or mesh interface for a specified session,
but leaves the session available for other assignments.
Parameters and options
mirror <SESSION>
Accepts either a number (1 to 4) or a name. To use a name, you must first configure the
name <
NAME-STR
>
parameter option for the specified mirroring session using the
policy mirror
command.
MAC-based criteria to select traffic
monitor mac
Syntax
[no] monitor mac <
MAC-ADDR
> [src|dst|both] mirror session
Description
Configures traffic using MAC-based criteria.
Parameters and options
no
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.
mirror
Enter the
monitor mac mirror
command at the global configuration level.
Chapter 12 Monitoring and Analyzing Switch Operation
407