mpls bgp ttl-mode egress

Function

The mpls bgp ttl-mode egress command sets a TTL processing mode for a BGP LSP egress.

The undo mpls bgp ttl-mode egress command restores the default TTL processing mode for a BGP LSP egress.

By default, the TTL processing mode of a BGP LSP egress is pipe.

Format

mpls bgp ttl-mode { uniform | pipe } egress

undo mpls bgp ttl-mode uniform egress

Parameters

Parameter Description Value
uniform

Sets the TTL processing mode to uniform for a BGP LSP egress.

-

pipe

Sets the TTL processing mode to pipe for a BGP LSP egress.

-

Views

MPLS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The BGP LSP egress processes the TTL of MPLS packets in either of the following mode:

  • Uniform mode

    After an IP packet reaches the ingress of an LSP, its IP TTL decreases by 1 and is mapped to its MPLS TTL field. The MPLS TTL decreases by 1 at each hop along the LSP. After the packet reaches the egress, the egress reduces the MPLS TTL by 1 and maps the MPLS TTL value to the IP TTL field before forwarding the packet.
  • Pipe mode

    On the ingress, the IP TTL in each packet decreases by 1, and the MPLS TTL is a fixed value. Then the MPLS TTL decreases by 1 at each hop along the LSP, and the IP TTL decreases by 1 only on the ingress and egress along the LSP.

    To monitor the connectivity of MS-PWs in a scenario where public network tunnels on a seamless MPLS network carry L2VPN services, you need to run the mpls bgp ttl-mode uniform egress command on the BGP LSP egress to set the TTL processing mode to uniform.

Example

# Set the TTL processing mode to uniform for a BGP LSP egress.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls bgp ttl-mode uniform egress
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >