2-168
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter 2 Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
match cos
match cos
To match a packet based on a Layer 2 class of service (CoS) marking, use the match cos command in
class-map configuration mode. You can match on the outer VLAN tag or the inner (customer) tag). to
remove the CoS match criteria, use the no form of this command.
match cos {cos-list | inner cos-list}
no match cos {cos-list | inner cos-list}
Syntax Description
Defaults No match criteria are defined.
Command Modes Class-map configuration
Command History
Usage Guidelines The match cos and match cos inner commands specify a CoS value to use as the match criteria to
determine if packets belong to the class specified by the class map.
Before using the match cos or match cos inner command, you must enter the class-map global
configuration command to specify the name of the class whose match criteria you want to establish.
Matching of CoS values is supported only on ports carrying Layer 2 VLAN-tagged traffic. That is, you
can use the cos classification only on IEEE 802.1Q trunk ports.
You can use match cos and match cos inner classification in input and output policy maps.
You can verify the configuration by entering the show class-map privileged EXEC command.
Examples This example shows how to create a class map called inclass, which matches all the incoming traffic with
CoS values of 1 and 4:
Switch(config)# class-map match-any in-class
Switch(config-cmap)# match cos 1 4
Switch(config-cmap)# exit
cos cos-list Matches a packet based on the outer VLAN tag or the service-provider CoS
value (S-CoS). You can specify up to four CoS values to match against
incoming packets. Separate each value with a space. The range is 0 to 7.
cos inner cos-list Matches a packet based on the C-CoS, the inner (customer) CoS value of an
802.1Q tunnel. For packets with less than two tags, this command has no
effect. You can specify up to four CoS values to match against incoming
packets. Separate each value with a space. The range is 0 to 7.
Release Modification
12.2(52)EY This command was introduced.