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.
Syntax Description
cos-list
Defaults
No match criteria are defined.
Command Modes
Class-map configuration
Command History
Release
12.2(25)EX
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.
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.
Related Commands
Command
class-map
show class-map
Cisco ME 3400 Ethernet Access Switch Command Reference
2-236
match cos cos-list |
no match cos 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.
Modification
This command was introduced.
Description
Creates a class map to be used for matching packets to the class whose name
you specify.
Displays quality of service (QoS) class maps.
Chapter 2
Cisco ME 3400 Ethernet Access Switch Cisco IOS Commands
OL-9640-07