qos map cos-mutation

Creates a QoS map for performing CoS-to-CoS mutation.

Syntax

qos map cos-mutation name cos0 cos1 cos2 cos3 cos4 cos5 cos6 cos7
no qos map cos-mutation name

Command Default

No CoS-to-CoS mutation QoS maps are defined.

Parameters

name
Specifies a unique name across all CoS-to-CoS mutation QoS maps defined within the system. If the named CoS-to-CoS mutation QoS map does not exist, then it is created. If the named CoS-to-CoS mutation QoS map already exists, then it is updated and new mapping is automatically propagated to all interfaces bound to the QoS map.
cos#
Specifies the outbound CoS value.
CoS value Description
cos0 Sets the outbound CoS value for all packets with inbound CoS 0.
cos1 Sets the outbound CoS value for all packets with inbound CoS 1.
cos2 Sets the outbound CoS value for all packets with inbound CoS 2.
cos3 Sets the outbound CoS value for all packets with inbound CoS 3.
cos4 Sets the outbound CoS value for all packets with inbound CoS 4.
cos5 Sets the outbound CoS value for all packets with inbound CoS 5.
cos6 Sets the outbound CoS value for all packets with inbound CoS 6.
cos7 Sets the outbound CoS value for all packets with inbound CoS 7.

Modes

Global configuration mode

Usage Guidelines

A CoS-to-CoS mutation takes an inbound CoS value and maps it to an outbound CoS value. The inbound CoS value is the user priority after any interface ingress QoS trust and Interface default CoS policy have been applied. The outbound CoS value is used in selecting Traffic Class and egress packet marking.

Enter no qos map cos-mutation name command to delete the named CoS-to-CoS mutation QoS map. A QoS map can only be deleted if it is not bound to any interface.

Examples

To create a CoS-to-CoS QoS mutation map to swap CoS 4 and CoS 5 and apply it on an interface, for example having inbound CoS 4 mapped to outbound CoS 5 and inbound CoS 5 mapped to outbound CoS 4; but all other CoS values go through unchanged:

device# configure terminal
device(config)# qos map cos-mutation cosMap 0 1 2 3 5 4 6 7 
device(config)# interface ethernet 2/1 
device(conf-if-eth-2/1)# qos cos-mutation cosMap

To delete a CoS-to-CoS QoS mutation map:

device# configure terminal
device(config)# no qos map cos-mutation cosMap