mpls 6pe ttl-mode

Function

The mpls 6pe ttl-mode command configures a mode in which MPLS TTLs in 6PE route labels are processed.

The undo mpls 6pe ttl-mode command restores the default configuration.

By default, MPLS TTLs in 6PE route labels are processed in pipe mode.

Format

mpls 6pe ttl-mode { pipe | uniform }

undo mpls 6pe ttl-mode

Parameters

Parameter Description Value
pipe

Sets the mode in which MP-BGP processes the TTLs in 6PE route labels to pipe.

-

uniform

Sets the mode in which MP-BGP processes the TTLs in 6PE route labels to uniform.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

The 6PE solution uses the MPLS tunneling technology over IPv4 networks to implement interworking between separate IPv6 networks. After receiving an IPv6 packet from a CE, the ingress PE encapsulates an MPLS label that identifies IPv6 routes (referred to as a 6PE route label) and a public network tunnel label into the IPv6 packet, which is then forwarded to the egress PE through the public network tunnel. Upon receipt, the egress PE removes the 6PE route label and forwards the involved packet to the destination through an IPv6 link based on the destination address of the packet. To configure a mode in which MPLS TTLs in 6PE route labels are processed, run the mpls 6pe ttl-mode command. You can specify either of the following modes:

  • Pipe mode: The ingress adds a 6PE route label with the MPLS TTL value fixed at 255 to each IPv6 packet, and the egress removes the 6PE route label upon receiving the packet. Only the egress decreases the value of the IPv6 TTL field in each IPv6 packet by 1.
  • Uniform mode: The ingress decreases the value of the IPv6 TTL field by 1 and then applies the new value to the MPLS TTL in each 6PE route label. The egress removes the 6PE route label, decreases the MPLS TTL value in the 6PE route label by 1, compares the new value with the value of the IPv6 TTL field, and applies the smaller value to the IPv6 TTL field.

Precautions

In VS mode, the mpls 6pe ttl-mode command and its undo form can be run only in the admin VS, but the configurations take effect for all VSs.

Example

# Set the mode in which MPLS TTLs in 6PE route labels are processed to uniform.
<HUAWEI> system-view
[~HUAWEI] mpls 6pe ttl-mode uniform
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >