< Home

peer-ip ttl

Function

The peer-ip ttl command configures the TTL value in BFD packets.

The undo peer-ip ttl command restores the default TTL value in BFD packets.

By default, the TTL value in BFD packets varies with the BFD session type. By default, for a static BFD session, the TTL value of a single-hop BFD packet is 255 and the TTL value of a multi-hop BFD packet is 254. For a dynamic BFD session, the TTL value of a single-hop BFD packet is 255 and the TTL value of a multi-hop BFD packet is 253.

Format

peer-ip peer-ip mask-length ttl { single-hop | multi-hop } ttl-value

undo peer-ip peer-ip mask-length ttl { single-hop | multi-hop }

Parameters

Parameter

Description

Value

peer-ip

Specifies the peer IP address bound to the BFD session.

-

mask-length

Specifies the mask length of the IP address.

The value is an integer that ranges from 8 to 32.

single-hop

Indicates the single-hop BFD session.

-

multi-hop

Indicates the multi-hop BFD session.

-

ttl-value

Specifies the TTL value in BFD packets.

The value is an integer that ranges from 1 to 255.

Views

BFD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can set the TTL value in BFD packets to enable the Huawei device to interwork with each other in different versions, with upgraded devices, and with non-Huawei devices.

Precautions

  • The length of the IP segment address must match the mask. A long mask takes precedence over a short mask.

  • The same IP segment addresses, masks, and TTL values of specified BFD session types cannot be configured simultaneously.

  • When the IP network segment addresses and mask lengths are the same, the TTL value of a single-hop BFD session must be greater than the TTL value of a multi-hop BFD session.

  • When a large number of BFD sessions are set up, updating the TTL value may take a long time. Therefore, when a smaller interval for configuring BFD sessions is used, the system displays a message indicating that the BFD session is being updated and you may try later.

  • After the TTL value in multi-hop BFD packets is configured, you must configure the same peer IP address, mask length longer than the mask length for the TTL value in multi-hop BFD packets, and TTL value in single-hop BFD packets. This is because the TTL value in multi-hop BFD packets affects dynamic single-hop BFD sessions.

Example

# Set the TTL value of single-hop BFD sessions to 254, the IP segment address to 10.10.10.0, and the mask length to 24.

<HUAWEI> system-view
[HUAWEI] bfd
[HUAWEI-bfd] peer-ip 10.10.10.0 24 ttl single-hop 254
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >