The label advertise command enables the egress to advertise labels of a specified type to the penultimate hop.
The undo label advertise command restores the default setting.
By default, the egress assigns implicit-null labels to the penultimate hop.
| Parameter | Description | Value |
|---|---|---|
| explicit-null | Disables Penultimate Hop Popping (PHP) and enables the egress to assign explicit null labels to the penultimate hop. The value of the explicit null label is 0. | - |
| implicit-null | Enables PHP and enables the egress to assign implicit null labels to the penultimate hop. The value of the implicit null label is 3. | - |
| non-null | Disables PHP and enable the egress to assign normal labels to the penultimate hop. The value of the label must be greater than equal to 16. | - |
Usage Scenario
MPLS transmits packets along label switched paths (LSPs). The egress at the last hop on the LSP removes MPLS labels from packets before forwarding the packets over IP links or using next layer labels. MPLS labels are useless at the last hop on an LSP. Therefore, penultimate hop popping (PHP) can be configured to enable the penultimate hop to remove labels, which improves forwarding efficiency.
By default, PHP is enabled, and the egress assigns implicit-null labels to the penultimate hop. To specify the type of label that the egress assigns to the penultimate hop, run the following commands:
Prerequisites
MPLS has been enabled globally using the mpls command in the system view.