Configuring IP Precedence Classification
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
class-map [type qos] [match-any | match-all]
class-name
Example:
switch(config)# class-map class_dscp
Step 3
match [not] dscp dscp-values
Example:
switch(config-cmap-qos)# match dscp af21,
af32
Step 4
exit
Example:
switch(config-cmap-qos)# exit
switch(config)#
Step 5
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
This example shows how to display the DSCP class-map configuration:
switch# show class-map class_dscp
Configuring IP Precedence Classification
You can classify traffic based on the precedence value in the type of service (ToS) byte field of the IP header.
The precedence values are listed in the following:
Table 25: Precedence Values
Value
0-7
critical
Cisco Nexus 9000 Series NX-OS Quality of Service Configuration Guide, Release 7.x
60
Purpose
Enters global configuration mode.
Creates or accesses the class map named class-name and enters
class-map mode. The class-map name can contain alphabetic,
hyphen, or underscore characters, and can be up to 40 characters.
Configures the traffic class by matching packets based on
dscp-values. The standard DSCP values are shown in the
following table.
Use the not keyword to match on values that do not match the
specified range.
Exits global class-map queuing mode and enters global
configuration mode.
(Optional) Saves the running configuration to the startup
configuration.
List of Precedence Values
IP precedence value
Critical precedence (5)
Configuring Classification