entropy-label ttl-mode

Function

The entropy-label ttl-mode command sets a mode of handling the TTL field in MPLS packets with label 7.

The undo entropy-label ttl-mode command is used to restore the default configuration.

By default, the uniform mode is used.

Format

entropy-label ttl-mode { uniform | pipe }

undo entropy-label ttl-mode

Parameters

Parameter Description Value
uniform

Indicates the uniform mode of handling the TTL field in MPLS packets with label 7.

-

pipe

Indicates the pipe mode of handling the TTL field in MPLS packets with label 7.

-

Views

MPLS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

To set a mode of handling the TTL field in MPLS packets with label 7, run the entropy-label ttl-mode command. Either of the following modes can be set (take effect only on the egress PE):

  • uniform: The egress PE reduces the MPLS TTL by one, compares it with the IP TTL, and propagates the smaller value to the IP TTL field before forwarding the packet.

  • pipe: The egress PE reduces the IP TTL by one, without propagating the MPLS TTL to the IP TTL.

Precautions

The commands take effect only on the egress PE.

Example

# Set a mode of handling the TTL field in MPLS packets with label 7 to uniform.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] entropy-label ttl-mode uniform
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >