Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Creates or accesses a named object that represents the specified
class of traffic. Class-map names can contain alphabetic,
switch(config)# class-map [type
{network-qos | qos | queuing}]
class-name
Step 2
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)
Deletes the specified class map.
switch(config)# no class-map
[type {network-qos | queuing |
qos | queuing}] class-name
Step 3
You cannot delete the two system-defined class maps:
class-fcoe and class-default.
Note
Configuring ACL Classification
You can classify traffic by matching packets based on an existing access control list (ACL). Traffic is classified
by the criteria defined in the ACL. The permit and deny ACL keywords are ignored in the matching; even
if a match criteria in the access-list has a deny action, it is still used for matching for this class.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Creates a named object that represents a class of traffic.
Class-map names can contain alphabetic, hyphen, or
switch(config)# class-map type qos
class-name
Step 2
underscore characters, are case sensitive, and can be up to
40 characters.
Configures a traffic class by matching packets based on
the acl-name. The permit and deny ACL keywords are
ignored in the matching.
switch(config-cmap-qos)# match
access-group name acl-name
Step 3
You can only define a single ACL in a class map.
You cannot add any other match criteria to a class
with a match access-group defined.
Note
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
430 OL-16597-01
Configuring System Classes
Configuring ACL Classification