1-63
Cisco ASR 901 Aggregation Services Router Command Reference Guide
OL-26031-07
Chapter 1 CLI Command Reference
match vlan
match vlan
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 identification number as a match criterion, use the
no
form of this command.
match vlan
vlan-id-number
no match vlan
vlan-id-number
Syntax Description
Command Default
Traffic is not matched on the basis of the VLAN identification 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 following restrictions apply to the
match vlan
command:
•
The
match vlan
command is supported for IEEE 802.1q and Inter-Switch Link (ISL) VLAN
encapsulations only.
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 class1
Router(config-cmap)#
match vlan 25-50
Router(config-cmap)#
end
vlan-id-number
VLAN identification number, numbers, or range of numbers. Valid
VLAN identification numbers must be in the range of 1 to 4095.
Release
Modification
15.1(2)SNG
Support for this command was introduced on the Cisco ASR 901 router.