qos map cos-traffic-class

Configures a QoS CoS-to-traffic-class mutation map.

Syntax

qos map cos-traffic-class name
no qos map cos-traffic-class name

Command Default

If CoS-to-traffic class mutation map is not defined, the default CoS-to-traffic class map is used, which is a one-to-one map for each priority.

Parameters

name
Specifies a unique name for the CoS-to-traffic class mutation QoS map. If the named map does not exist, then it is created. If the map already exists, then it is updated and new mapping is automatically propagated to all interfaces bound to the map.

Modes

Global configuration mode

Usage Guidelines

A CoS-to-traffic class mutation map takes an inbound CoS value and maps it to an outbound traffic class (priority queue) value. The inbound CoS value is the user priority after any interface ingress QoS trust and Interface default CoS policy have been applied.

Use the no form of the command to delete the named map.

A QoS map can only be deleted if it is not bound to an interface.

Examples

This example creates a QoS CoS-to-traffic-class mutation map and assigns it to the specified Ethernet interface. The drop-precedence parameter is mandatory.

device# configure terminal
device(config)# qos map cos-traffic-class tcmap1
device(cos-traffic-class-tcmap1)# map cos 2 to traffic-class 4 drop-precedence 0
device(cos-traffic-class-tcmap1)# map cos 3 to traffic-class 4 drop-precedence 1
device(cos-traffic-class-tcmap1)# map cos 3 to traffic-class 6 drop-precedence 1 
device(cos-traffic-class-tcmap1)# interface ethernet 1/1 
device(conf-if-eth-1/1)# qos cos-traffic-class tcmap1

This example removes the mutation map that is bound to the specified Ethernet interface.

device# configure terminal
device(config)# interface ethernet 1/1 
device(conf-if-eth-1/1)# no qos cos-traffic-class tcmap1
device(conf-if-eth-1/1)# exit
device(config)# no qos map cos-traffic-class tcmap1