Published On: August 6ᵗʰ, 2019 02:04
Cisco Enterprise Network Compute System Switch Command Reference
QoS Commands
- qos cos
- qos dscp-mutation
- qos map dscp-mutation
- qos map dscp-queue
- qos map policed-dscp
- qos port
- qos trust cos-dscp
qos cos
To define the default CoS value of a port, use the qos cos command in the interface switch configuration mode. To restore the default configuration, use the no form of this command.
Syntax Description
default-cos |
Specifies the default CoS value (VPT value) of the port. If the port is trusted and the packet is untagged, the default CoS value become the CoS value. Valid range is from 0 to 7. |
Command History
qos dscp-mutation
To apply the DSCP mutation map to system DSCP trusted ports, use the qos dscp-mutation command in switch configuration mode. To restore the trusted port with no DSCP mutation, use the no form of this command.
Syntax Description
Command History
Usage Guidelines
Apply the DSCP-to-DSCP-mutation map to a port at the boundary of a Quality of Service (QoS) administrative domain. If two QoS domains have different DSCP definitions, use the DSCP-to-DSCP-mutation map to translate a set of DSCP values to match the definition of another domain. Apply the map to ingress and to DSCP-trusted ports only. Applying this map to a port causes IP packets to be rewritten with newly mapped DSCP values at the ingress ports. If applying the DSCP mutation map to an untrusted port, to class of service (CoS), or to an IP-precedence trusted port. Global trust mode must be DSCP or CoS-DSCP. In advanced CoS mode, ports must be trusted.
qos map dscp-mutation
To configure the DSCP to DSCP mutation table, use the qos map dscp-mutation command in switch configuration mode. To restore the default configuration, use the no form of this command.
Syntax Description
in-dscp |
Specify the input dscp value. Valid range is from 0 to 63. |
out-dscp |
Specify the output dscp value. Valid range is from 0 to 63. |
Command Default
The default map is the Null map, which means that each incoming DSCP value is mapped to the same DSCP value.
Command History
qos map dscp-queue
To configure a DSCP value to a queue, use the qos map dscp-queue command in switch configuration mode. To restore the default configuration, use the no form of this command.
Syntax Description
dscp-value |
Specifies the dscp value. |
queue-id |
Specifies the queue number to which the DSCP value is to be mapped. |
Command History
qos map policed-dscp
To configure the policed-DSCP map for remarking purposes, use the qos map policed-dscp command in switch configuration mode. To restore the default configuration, use the no form of this command.
Syntax Description
dscp-value |
Specifies a dscp value. Valid range is from 0 to 63. |
dscp-mark-down |
Specifies the DSCP value to mark down. Valid range is from 0 to 63. |
Command Default
The default map is the Null map, which means that each incoming DSCP value is mapped to the same DSCP value.
Command History
qos port
To configure the port trust mode, use the qos port command in switch configuration mode. To restore the default configuration, use the no form of this command.
Syntax Description
ports-not-trusted |
Indicates that the packets, which are not classified by policy map rules to a QoS action, are mapped to egress queue 0 unless a policy map action explicitly specifies another trust/set action. |
ports-trusted |
Indicates that the packets, which are not classified by policy map rules to a QoS action, are mapped to an egress queue based on the packet's fields, unless a policy map action explicitly specifies another trust/set action. Use the qos trust cos-dhcp command to specify the trust mode. |
Command History
qos trust cos-dscp
To configure the system to the cos-dscp trust mode, use the qos trust cos-dscp command in switch configuration mode. To return to the default configuration, use the no form of this command.
Syntax Description
Command History
Usage Guidelines
This command can be used only in QoS basic mode.
Packets entering a QoS domain are classified at its edge. When the packets are classified at the edge, the switch port within the QoS domain can be configured to the trusted state because there is no need to classify the packets at every switch within the domain.