set qos-group

To assign the QoS group identifier for a class of traffic in a type qos policy map, use the set qos-group command. To remove the assigned value from the class, use the no form of this command.

set qos-group qos-group-value

no set qos-group qos-group-value

Syntax Description

qos-group-value
QoS group value to assign for this class of traffic. The range is from 2 to 5 for a Cisco Nexus 5020 switch, 1 to 5 for a Cisco Nexus 5548 switch, and 0 to 5 for all other Cisco Nexus 5000 Series switches.


Note On a Cisco Nexus 5548 switch, the default is 1.


Command Default

1 on a Cisco Nexus 5548 switch.

Command Modes

Policy map type qos class configuration

Command History

Release
Modification
4.1(3)N1(1)
This command was introduced.
5.0(2)N1(1)
The range of valid QoS group value is from 1 to 5.

Usage Guidelines

You can set the QoS group identifier value only in ingress policies. You can set a maximum of 5 QoS groups in ingress policies.

If you set the values for more than two IP header fields in a policy map class, an error message similar to the following appears:

ERROR: Only 2 sets out of qos-group/cos/dscp/precedence/discard-class are allowed. Please remove other set action before applying this one.
 

Examples

This example shows how to assign a QoS group identifier for a class of traffic in a type qos policy map in Cisco NX-OS release 4.1(3)N1(1):

switch(config)# policy-map my_policy1
switch(config-pmap-qos)# class traffic_class2
switch(config-pmap-c-qos)# set qos-group 10
switch(config-pmap-c-qos)#
 

This example shows how to assign a QoS group identifier for a class of traffic in a type qos policy map in Cisco NX-OS release 5.0(2)N1(1):

switch(config)# policy-map my_policy
switch(config-pmap-qos)# class my_class
switch(config-pmap-c-qos)# set qos-group 3
switch(config-pmap-c-qos)#

Related Commands

Command
Description
copy running-config startup-config
Copies the running configuration to the startup configuration file.
show policy-map type qos
Displays the QoS policy maps.
show running-config ipqos
Displays the QoS running configuration.
show startup-config ipqos
Displays the QoS configuration stored in the startup file.