The port-observing pop-label command enables an observing interface to remove labels from MPLS packets.
The undo port-observing pop-label command disables an observing interface from removing labels from MPLS packets.
By default, an observing interface does not remove labels from received MPLS packets.
Parameter | Description | Value |
---|---|---|
one |
Enables an observing interface to remove labels from MPLS packets each with a single label. |
- |
two |
Enables an observing interface to remove all labels from MPLS packets each with double labels. |
- |
all |
Enables an observing interface to remove all labels from MPLS packet has no more than five labels. |
- |
sub-interface |
Sub-interface. |
- |
extend |
Specify pop mpls label feature. |
- |
Usage Scenario
When a mirroring-enabled interface on an MPLS tunnel functions as an observing interface, to enable this interface to remove labels from MPLS packets, run the port-observing pop-label command.
To enable a sub-interface to remove labels from MPLS packets, run the port-observing pop-label { one | two | all } sub-interface extend command. In addition, run the port-observing with-linklayer-header command on the observing port to configure mirroring to cover link-layer headers of packets so that mirrored packets carry Layer 2 header information.Prerequisites
An interface on an MPLS tunnel has been configured as an observing interface.
Configuration Impact
If the port-observing pop-label command is run more than once, the latest configuration overrides the previous one.
The port-observing pop-label command does not take effect on MPLS packets each with more than five labels.Precautions
The port-observing pop-label and port-observing dest-mac commands are mutually exclusive.