apply-label per-route pop-go (BGP-Labeled address family view)

Function

The apply-label per-route pop-go command configures the egress of a BGP LSP to forward a data packet received from the LSP through the outbound interface found in the ILM based on the label carried in the packet.

The undo apply-label per-route pop-go command restores the default configuration.

By default, after the egress of a BGP LSP receives a labeled data packet from the LSP, the egress removes the label of the data packet and forwards the packet based on a forwarding entry found in the IP forwarding table according to the longest-match principle.

Format

apply-label per-route pop-go

undo apply-label per-route pop-go

Parameters

None

Views

BGP-Labeled address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After the apply-label per-route pop-go command is configured on the egress of a BGP LSP, after the local Device receives a data packet from peer Device, the local Device directly searches the ILM for an outbound interface based on label information carried in the packet and forwards the packet through the found outbound interface after removing the packet label. This implementation ensures correct packet forwarding.

Example

# Configure the egress of a BGP LSP to forward a data packet received from the LSP through the outbound interface found in the ILM based on the label carried in the packet.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family labeled-unicast
[*HUAWEI-bgp-af-ipv4-labeled] apply-label per-route pop-go
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >