You can configure static EXP-to-PHB mapping at the per-VR level, only for LSPs that do not have specific policies attached (by either per-LSP configured mapping or signaled mapping). The configured mapping applies regardless of label distribution protocol, BGP. LDP, or RSVP-TE.
The PHB of incoming packets is determined from the EXP bits by the match values set with the mpls match exp-bits command.
The EXP bits of outgoing packets are determined from the PHB by the mtach values set with the mpls match traffic-class command.
To configure static EXP-to-PHB mapping:
- host1(config)#mpls match exp-bits 1 set traffic-class
bronze color red
You can repeat the command to support the eight possible EXP bit values.
- host1(config)#mpls match traffic-class gold
color green set exp-bits 7
You can repeat the command to support up to 24 combinations: eight traffic classes supported on the router times three colors.