gre ttl-mode

Function

The gre ttl-mode command configures a mode for processing TTLs carried in packets transmitted over a GRE tunnel.

By default, a GRE tunnel processes TTLs carried in packets in pipe mode.

Format

gre ttl-mode { pipe | uniform }

undo gre ttl-mode

Parameters

Parameter Description Value
pipe

Configures a GRE tunnel to process TTLs carried in packets in pipe mode.

-

uniform

Configures a GRE tunnel to process TTLs carried in packets in uniform mode.

-

Views

Slot view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

To configure a mode for processing TTLs carried in packets transmitted over a GRE tunnel, run the gre ttl-mode command.

Prerequisites

The TTL processing mode configured using the gre ttl-mode command takes effect only after a GRE tunnel is bound to a loopback interface using the binding tunnel gre command. The two commands can be run in any sequence.

Configuration Impact

When the gre ttl-mode pipe command is configured, the TTL placed in the encapsulating IP header of a GRE packet is 255; when the gre ttl-mode uniform command is configured, the TTL placed in the encapsulating IP header of a GRE packet is the same as the TTL placed in the inner IP header of the packet.

If the gre ttl-mode command is run more than once, the latest configuration overrides the previous one.

In VS mode, this command is supported only by the admin VS.

Example

# Configure a GRE tunnel to process TTLs carried in packets in pipe mode.
<HUAWEI> system-view
[~HUAWEI] slot 1
[~HUAWEI-slot-1] gre ttl-mode pipe
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >