Apply MPLS EXP Classifiers for Explicit-Null Labels
When you configure MPLS explicit-null labels, label 0 is advertised to the egress router of an LSP. When label 0 is advertised, the egress router (instead of the penultimate router) removes the label. Ultimate-hop popping (UHP) ensures that any packets traversing an MPLS network include a label. For more information about explicit-null labels and UHP, see the MPLS Applications User Guide.
When you configure MPLS explicit-null labels with an MPLS EXP classifier, the MPLS EXP classifier can be different from an IPv4 or IPv6 classifier configured on the same logical interface. In other words, you can apply separate classifiers for MPLS EXP, IPv4, and IPv6 packets per logical interface.
Configure an MPLS EXP classifier for explicit-null labels:
Apply the MPLS EXP classifier to the logical interface:
Specify the physical and logical interface names on which you want to apply the classifier.
[edit] user@host# edit class-of-service interfaces interface-name unit logical-unit-number
Specify the classifier type and name you want to apply to the interface.
[edit class-of-service classifiers interfaces interface-name unit logical-unit-number] user@host# set classifiers exp classifier-name
When a packet with a single label is received, if the label is an explicit-null label (0 or 2),
the label is popped first, making the EXP information no longer available. The
subsequent packet classification is based on the IPv4/IPv6 payload. To preserve
the MPLS classification of the packet, set [explicit-null-cos
inet|inet6] at the [edit
forwarding-options] hierarchy level. This option makes the packet
classification based on the MPLS EXP value rather than on the payload.
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.
[explicit-null-cos
inet|inet6] at the [edit
forwarding-options] hierarchy level. This option makes the packet
classification based on the MPLS EXP value rather than on the payload, thus
preserving the MPLS classification of the packet.