Match Vlan - Cisco ASR 901 Command Reference Manual

Aggregation services router
Hide thumbs Also See for ASR 901:
Table of Contents

Advertisement

Chapter 1
CLI Command Reference

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.
Syntax Description
vlan-id-number
Command Default
Traffic is not matched on the basis of the VLAN identification number.
Command Modes
Class-map configuration
Command History
Release
15.1(2)SNG
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:
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
OL-26031-07
match vlan vlan-id-number
no match vlan vlan-id-number
Modification
Support for this command was introduced on the Cisco ASR 901 router.
The match vlan command is supported for IEEE 802.1q and Inter-Switch Link (ISL) VLAN
encapsulations only.
VLAN identification number, numbers, or range of numbers. Valid
VLAN identification numbers must be in the range of 1 to 4095.
Cisco ASR 901 Aggregation Services Router Command Reference Guide
match vlan
1-63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents