match cos

To define the class of traffic using the class of service (CoS) value in a type qos class map, use the match cos command. To remove the match on the CoS value, use the no form of this command.

match [ not ] cos cos-list

no match [ not ] cos cos-list

Syntax Description

not
(Optional) Negates the specified match result.
cos-list
Specified CoS value or list of specified CoS values. Valid values are from 0 to 7.

Command Default

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification
4.1(3)N1(1)
This command was introduced.

Usage Guidelines

To specify a list of values, use one of the following options:


Note Only class maps of type qos support the optional not keyword form of this command. Class maps of type queuing do not support the not keyword.


Examples

This example shows how to match on the CoS value for a type qos class map:

switch(config)# class-map class_acl
switch(config-cmap-qos)# match cos 5-7
 

Related Commands

Command
Description
show class-map
Displays class maps.