port-observing pop-label

Function

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.

Format

port-observing pop-label { one | two | all } [ sub-interface extend ]

undo port-observing pop-label

undo port-observing pop-label { one | two | all } [ sub-interface extend ]

Parameters

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.

-

Views

100GE interface view, 10G LAN interface view, 40GE interface view, Layer 2 GE interface view, GE interface view, GE electrical interface view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mirror write

Usage Guidelines

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.

Example

# Enable an observing interface named 0/2/3 to remove labels from MPLS packets each with a single label.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/11
[~HUAWEI-GigabitEthernet0/1/11] port-observing observe-index 1
[*HUAWEI-GigabitEthernet0/1/11] port-observing pop-label one
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >