8.1.2. qos cos

Syntax

qos cos <0-7>

Parameter


cos <0-7> Specify the CoS value for the interface.


Default

Default CoS value for interface is 0.

Mode

Interface Configuration

Usage

Sometimes, there is no qos information in the packets, such as CoS, DSCP, IP Precedence. But we still can give the priority for packets by configuring the interface default cos value. If there is no qos information in the packets, the device will use this default cos value and find the cos-queue map to get the final destination queue.

Use “qos cos” command to assign port default cos value.

Example

This example shows how to configure default cos value 7 on interface gi1.

Switch(config)# interface GigabitEthernet 1
Switch(config-if)# qos cos 7
Switch(config-if)# end
Switch# show qos interface GigabitEthernet 1
Port | CoS | Trust State | Remark Cos | Remark DSCP | Remark IP Prec
--------+-------+---------------+------------+-------------+---------
gi1 | 7 | enabled | disabled | disabled | disabled |