•
Apply the policy to the interface.
•
Remove the dummy policer to display the statistics.
•
Statistics are shown per policy and not at an interface level.
•
Use the show ip access-list command to display statistics for matches based on access group. These
statistics cannot be viewed with the show policy-map interface command.
Configuring a QoS Policy
The following configuration is a generic example to configure a QoS policy.
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Creates Simple Network Management Protocol
(SNMP) communities for SNMPv1 or SNMPv2c.
switch(config) # snmp-server
community com-name rw
Step 2
Creates Simple Network Management Protocol
(SNMP) communities for SNMPv1 or SNMPv2c.
switch(config) # snmp-server
community com-name rw
Step 3
Specifies the component type qos for the class map
and enters the class-map type qos configuration
mode.
switch(config) # class-map type qos
match-any class-map-name
Step 4
Adds a description for the class-map.switch(config-cmap-qos) # description
text
Step 5
Defines the class of traffic using the class of service
(CoS) value in a type qos class map.
switch(config-cmap-qos) # match cos
cos-list
Step 6
(Optional) Specifies differentiated services code
point (DSCP) values in the DiffServ field of the IP
Header (either IPv4 or IPv6) as a match criterion.
switch(config-cmap-qos) # match dscp
dscp-list
Step 7
Exits the class-map type qos configuration mode.switch(config-cmap-qos) # exit
Step 8
Specifies the type qos policy map and enters the
policy-map qos configuration mode.
switch(config) # policy-map type qos
qos-policy-map-name
Step 9
Configures the policy-map description.switch(config-pmap-qos) # description
text
Step 10
Configures the service policy for a class-map.switch(config-pmap-qos) # class
class-map-name
Step 11
Assigns the QoS group identifier for a class of
traffic in a type qos policy map.
switch(config-pmap-c-qos) # set
qos-group qos-group-value
Step 12
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x    
   OL-31641-01 325
Class-based Quality-of-Service MIB
Configuring a QoS Policy