2-271
Cisco ME 3400 Ethernet Access Switch Command Reference
OL-9640-10
Chapter 2      Cisco ME 3400 Ethernet Access Switch Cisco IOS Commands
match cos
match cos
Use the match cos class-map configuration command to match a packet based on a Layer 2 class of 
service (CoS) marking. Use the no form of this command to remove the CoS match criteria.
match cos cos-list 
no match cos cos-list 
Syntax Description
Defaults No match criteria are defined.
Command Modes Class-map configuration
Command History
Usage Guidelines The match cos command specifies 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 command, you must enter the class-map global configuration command to 
specify the name of the class whose match criteria you want to establish.
Yo u  can  spe cify up to four Layer 2 CoS values to match against the packet. Separate each value with a 
space. The range is 0 to 7. 
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 classification in input and output policy maps.
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
You can verify your settings by entering the show class-map privileged EXEC command.
cos-list List of 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(25)EX This command was introduced.