match vlan
Use this command to classify the traffic based on a VLAN.
Use the no command to remove the match configuration.
Note: The match commands which accept range has silent exit which makes removal of these match configuration easier. For example, classify the traffic based on VLAN using the command match vlan 2,4,6 and remove the match configuration using the command no match vlan 2-6.
Command Syntax
match vlan WORD
Note: Below no command is applicable for class-map of type match-any.
no match vlan (WORD|all)
Note: Below no command is applicable for class-map of type match-all.
no match vlan
Parameters
WORD
Enter VLAN ID <1-4094> or range of VLAN ID's separated by commas. For example, 2 or 2,4-5 or 50,51,52 or 100-120,122-130 etc.
all
Delete all VLAN ID entries.
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced in OcNOS version 3.0.
Examples
(config)#class-map type qos C_QOS1
(config-cmap-qos)#match vlan 100
Last modified date: 10/20/2023