Match Cos - Cisco ME 3400 Command Reference Manual

Ethernet access switch
Table of Contents

Advertisement

Chapter 2
Cisco ME 3400 Ethernet Access Switch Cisco IOS Commands

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.
You can specify 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.
OL-9640-10
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.
Cisco ME 3400 Ethernet Access Switch Command Reference
match cos
2-271

Advertisement

Table of Contents
loading

Table of Contents