ttl-mode (SRv6 locator End-AS view)

Function

The ttl-mode command configures the TTL processing mode for restoring original packets that receiving from SF.

The undo ttl-mode command restores the default TTL mode.

By default, the TTL processing mode is uniform.

Format

ttl-mode pipe ttl-value

ttl-mode uniform

undo ttl-mode pipe [ ttl-value ]

undo ttl-mode uniform

Parameters

Parameter Description Value
ttl-value

Specifies a TTL value.

The value is an integer ranging from 1 to 255.

uniform

Specifies the uniform mode.

-

pipe

Specifies the pipe mode.

-

Views

SRv6 locator End-AS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

After packets are transmitted from the SF to the SFF, the TTL of the original packets is processed in the following modes:

  • Uniform mode: On the egress node, the TTL value of inner packets is subtracted by 1 and mapped to the IPv6 TTL field.
  • Pipe mode: On the egress node, the TTL value of inner packets is not mapped to the IPv6 TTL field. Instead, the value of ttl-value minus 1 is directly assigned to the IPv6 TTL field.

Example

# Configure the TTL mode as uniform.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 2001:DB8:100:: 64 static 32
[*HUAWEI-segment-routing-ipv6-locator] opcode ::12 end-as
[*HUAWEI-segment-routing-ipv6-locator-endas-::12] ttl-mode uniform
# Configure the TTL mode as pipe.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 2001:DB8:100:: 64 static 32
[*HUAWEI-segment-routing-ipv6-locator] opcode ::12 end-as
[*HUAWEI-segment-routing-ipv6-locator-endas-::12] ttl-mode pipe 255
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic