Cisco Cisco IOS Software Release 12.2(27)SBC

다운로드
페이지 22
QoS—VLAN Tag-Based
  match vlan (QoS)
20
QoS - VLAN Tag-Based
match vlan (QoS)
To match and classify traffic on the basis of the virtual local-area network (VLAN) identification 
number, use the match vlan command in class-map configuration mode. To remove a previously 
specified VLAN number as a match criterion, use the no form of this command.
match vlan vlanid 
no match vlan vlanid
Syntax Description
Command Default
Traffic is not matched on the basis of the VLAN ID number. 
Command Modes
Class-map configuration
Command History
Usage Guidelines
Specifying VLAN Identification Numbers
You can specify a single VLAN identification number, multiple VLAN identification numbers separated 
by spaces (for example, 2 5 7), or a range of VLAN identification numbers separated by a hyphen (for 
example, 25-35).
Support Restrictions
The match vlan command is supported for IEEE 802.1Q and Inter-Switch Link (ISL) VLAN 
encapsulations only. 
Cisco 10000 Series Router
The match vlan command is used to create a VLAN group. If you configure this command in a class 
map, you cannot specify other match commands in the same class map.
Examples
In the following sample configuration, the match vlan command is enabled to classify and match traffic 
on the basis of a range of VLAN identification numbers. Packets with VLAN identification numbers in 
the range of 25 to 50 are placed in the class called class1.
Router> enable
Router# configure terminal
Router(config)# class-map match-any class1
Router(config-cmap)# match vlan 25-50
vlanid
VLAN identification number(s) or a range of numbers. Valid values are 
from 1 to 4095.
Release
Modification
12.4(4th)T
This command was introduced.
12.2(31)SB2
This command was integrated in Cisco IOS Release 12.2(31)SB2 for the 
Cisco 10000 series router for the PRE3.