Cos-to-queue Map Configuration
This chapter contains a complete sample of configuring Cos-to-queue map.
Topology
Simple configuration of CoS
Configuration of Cos-to-queue Map on configuration mode
The following steps describe how to configure Cos-to-queue map on configuration mode.
#configure terminal | Enter configure mode. |
(config)#qos enable | Enable QoS globally. |
(config)#qos statistics | Enable QoS statistics. |
(config)#qos profile cos-to-queue Profile2 | Enter cos-to-queue profile configuration mode |
(config-ingress-cos-map)#cos 2 queue 4 | Map cos 2 to queue 4 under cos-to-queue profile configuration mode |
(config-ingress-cos-map)#exit | Exit configure mode. |
(config)#qos profile cos-to-queue Profile4 | Enter cos-to-queue profile configuration mode |
(config-ingress-cos-map)#cos 3 queue 4 color yellow | Map cos 3 to queue 4 for yellow packets |
(config-ingress-cos-map)#exit | Exit cos-to-queue map profile configuration |
(config)#exit | Exit configure mode. |
Validation
Enter the commands below to confirm the configurations.
#show running-config qos qos enable
qos statistics
!
qos profile cos-to-queue Profile2
cos 2 dei all queue 4
qos map cos 2 queue 4
!
qos profile cos-to-queue Profile4
cos 3 dei all queue 4 color yellow
!
Configuration of Cos-to-queue Map Profile on Interface mode
The following steps describe how to configure Cos-to-queue map profile on interface mode.
#configure terminal | Enter configure mode. |
(config)#qos enable | Enable QoS globally. |
(config)#qos statistics | Enable QoS statistics. |
(config)#interface xe2 | Enter interface mode. |
(config-if)#switchport | Configure the port as switchport |
(config-if)#qos map-profile cos-to-queue Profile2 | Map cos-to-queue profile on the interface |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
(config)#interface xe3 | Enter interface mode. |
(config-if)#switchport | Configure the port as switchport |
(config-if)#qos map-profile cos-to-queue Profile4 | Map cos-to-queue profile on the interface |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
qos statistics
!
qos profile cos-to-queue Profile2
cos 2 dei all queue 4
!
!
!
interface ce3/1
qos map-profile cos-to-queue Profile2
!
qos profile cos-to-queue Profile4
cos 3 dei all queue 4 color yellow
!
!
#show qos-profile type cos-to-queue Profile4
profile name: Profile4
profile type: cos-to-queue
profile attached to 0 instances
configured mapping:
cos 3 dei all queue 4 color yellow
Detailed mapping:
---------------+----------------- | ---------------+-----------------
INPUT | OUTPUT | INPUT | OUTPUT
---------------+----------------- | ---------------+-----------------
COS | DEI | Queue | Color | COS | DEI | Queue | Color
-------+-------+-------+--------- | -------+-------+-------+---------
0 0 0 green | 0 1 0 yellow
1 0 1 green | 1 1 1 yellow
2 0 2 green | 2 1 2 yellow
3 0 4 yellow | 3 1 4 yellow
4 0 4 green | 4 1 4 yellow
5 0 5 green | 5 1 5 yellow
6 0 6 green | 6 1 6 yellow
7 0 7 green | 7 1 7 yellow