# mpls match traffic-class

#### Syntax

mpls match traffic-class className color { green | yellow | red } set exp-bits bitValue

no mpls match traffic-class className color { green | yellow | red }

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Sets the EXP bits in the MPLS shim header of outgoing MPLS packets that match the specified combination of traffic class and color. The no version reverts to the default behavior for traffic matching the specified traffic class and color combination. The default behavior sets the EXP bits to 000 for traffic entering an LSP and has no effect on the EXP bits for transit traffic.

#### Options

- className—Name of a traffic class; the router supports up to eight traffic classes
- green—Sets packet color to green, indicating a low drop preference
- yellow—Sets packet color to yellow, indicating a medium drop preference
- red—Sets packet color to red, indicating a high drop preference
- bitValue—Value in the range 0–7 that sets the corresponding binary value (000–111) for the three EXP bits

#### Mode

Global Configuration