Reference Guide

QoS Commands 687
match vlan
Use the match vlan command in Class-Map Configuration mode to add to
the specified class definition a match condition based on the value of the
layer 2 VLAN Identifier field. This field is the only tag in a single tagged
packet or the first or outer tag of a double VLAN packet.
Syntax
match vlan
vlan-id
vlan-id
— Specifies a VLAN ID as an integer. (Range: 0–4095)
Default Configuration
This command has no default configuration.
Command Mode
Class-Map Configuration mode
User Guidelines
Only a single VLAN can be specified for each class map. To remove the
matching criteria, delete the class map.
Example
The following example displays adding a match condition for the VLAN ID
"2."
console(config-classmap)#match vlan 2
mirror
Use the mirror command in Policy-Class-Map Configuration mode to mirror
all the data that matches the class defined to the destination port specified.
Syntax
mirror
interface
interface
— Specifies the Ethernet port to which data needs to be copied.
2CSPC4.XModular-SWUM204.book Page 687 Friday, March 15, 2013 9:24 AM