cos (MPLS)

Configures the a Class of Service (CoS) priority value for all packets traveling through the LSP.

Syntax

cos number
no cos number

Parameters

number
Specifies the CoS priority value. Enter a number from 0 to 7. The lowest priority is 0, the default value. The highest priority is 7.

Modes

MPLS LSP configuration mode.

MPLS router bypass LSP configuration mode (config-router-mpls-bypass-lsp-bypass_name).

MPLS router MPLS interface dynamic bypass configuration mode (config-router-mpls-if-ethernet-slot/port-dynamic-bypass)

Usage Guidelines

The 3-bit EXP field in the MPLS header defines a CoS value for packets traveling through the LSP. When you set the CoS value, it is applied to the EXP field in the MPLS header of all packets entering this LSP. Then, all packets traveling through an LSP have the same priority as they travel the MPLS domain.

The MPLS CoS value determines the priority within an MPLS domain only. When the label is pops, the CoS value in the MPLS header is discarded and it is not copied back to the IP ToS field.

Use the no form of the command to remove the configured setting.

MPLS is supported only on devices based on the DNX chipset family. For a list of such devices, see "Supported Hardware".

Examples

The following example configures the CoS priority of 7 to all packets traveling through the tunnel4 LSP.

device(config-router-mpls)# lsp tunnel4
device(config-router-mpls-lsp-tunnel4)# cos 7

The following example configures the CoS priority of 6 to dynamic bypass MPLS Ethernet interface 0/8.

device>configure
device(config)# router mpls
device(config-router-mpls)# mpls-interface ethernet 0/8
device(config-router-mpls-if-ethernet-0/8)# dynamic-bypass
device(config-router-mpls-if-ethernet-0/8-dynamic-bypass)# cos 6