Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Creates or accesses a named object that represents the specified class
of traffic.
switch(config)#
class-map
[
type
{
network-qos
|
qos
|
queuing
}]
class-map name
Step 2
Class-map names can contain alphabetic, hyphen, or underscore
characters, are case sensitive, and can be up to 40 characters.
The three class-map configuration modes are as follows:
•
network-qos
—
Network-wide (global) mode. CLI prompt:
switch(config-cmap-nq)#
•
qos
—
Classification mode; this is the default mode. CLI
prompt: switch(config-cmap-qos)#
•
queuing
—
Queuing mode. CLI prompt:
switch(config-cmap-que)#
(Optional)
Specifies that packets must match any or all criteria that is defined
for a class map.
switch(config)#
class-map
[
type qos
] [
match-all
|
match-any
]
class-map name
Step 3
•
match-all
—
Classifies traffic if packets match all criteria that
is defined for a specified class map (for example, if both the
defined CoS and the ACL criteria match).
•
match-any
—
Classifies traffic if packets match any criteria
that is defined for a specified class map (for example, if either
the CoS or the ACL criteria matches).
Class-map names can contain alphabetic, hyphen, or underscore
characters, are case sensitive, and can be up to 40 characters.
(Optional)
Deletes the specified class map.
switch(config)#
no class-map
[
type
{
network-qos
|
qos
|
queuing
}]
class-name
Step 4
You cannot delete the two system-defined class maps:
class-fcoe and class-default.
Note
Class-map names can contain alphabetic, hyphen, or underscore
characters, are case sensitive, and can be up to 40 characters.
Configuring CoS Classification
You can classify traffic based on the class of service (CoS) in the IEEE 802.1Q header. This 3-bit field is
defined in IEEE 802.1p to support QoS traffic classes. CoS is encoded in the high order 3 bits of the VLAN
ID Tag field and is referred to as
user_priority
.
Cisco Nexus 5000 NX-OS Quality of Service Configuration Guide, Release 5.1(3)N2(1)
OL-26657-01
9
Configuring Classification
Configuring CoS Classification