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 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 the traffic class by matching packets based
on a range of lower and upper UDP port numbers, which
switch(config-cmap-qos)# match ip
rtp port-number
Step 3
is likely to target applications using RTP. Values can
range from 2000 to 65535.
(Optional)
Removes the match from the traffic class.
switch(config-cmap-qos)# no match
ip rtp port-number
Step 4
This example shows how to classify traffic by matching packets based on UDP port ranges that are typically
used by RTP applications:
switch# configure terminal
switch(config)# class-map type qos class_rtp
switch(config-cmap-qos)# match ip rtp 2000-2100, 4000-4100
Use the show class-map command to display the RTP class-map configuration:
switch# show class-map class_rtp
Configuring Precedence Classification
You can classify traffic based on the precedence value in the type of service (ToS) byte field of the IP header
(either IPv4 or IPv6). The following table shows the precedence values:
Table 57: Precedence Values
List of Precedence ValuesValue
IP precedence value<0-7>
Critical precedence (5)critical
Flash precedence (3)flash
Flash override precedence (4)flash-override
Immediate precedence (2)immediate
Internetwork control precedence (6)internet
Network control precedence (7)network
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
434 OL-16597-01
Configuring System Classes
Configuring Precedence Classification