< Home

bfd bind peer-ip default-ip

Function

The bfd bind peer-ip default-ip command creates a static BFD session (by using the default multicast IP address) and accesses the BFD session view.

The undo bfd cfg-name command deletes the specified BFD session and the BFD binding.

Format

bfd cfg-name bind peer-ip default-ip interface interface-type interface-number [ source-ip source-ip ]

undo bfd cfg-name

Parameters

Parameter Description Value

cfg-name

Specifies the configuration name of BFD.

It is a string of 1 to 15 characters without spaces.

peer-ip default-ip

Indicates the default multicast address bound to a BFD session. It can be configured by using the default-ip-address command.

-

interface interface-type interface-number

Specifies the local interface bound to the BFD session.

It can be a Layer-2 or Layer-3 interface (VLANIF interface is not included).

source-ip source-ip

Specifies the source IP address of the BFD packet.

It is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the peer IP address cannot be specified (in some cases, the peer end does not have an IP address), bind the BFD session to a multicast address and send BFD control packets to the multicast address.

Prerequisites

Global BFD must have been enabled using the bfd command before BFD sessions are configured.

Configuration Impact

Note the following when configuring the source IP address:

  • If source-ip is specified, the device uses this source-ip as the source IP address of the BFD packet. You must ensure that this source-ip parameter is correct. The system only checks whether this parameter is a valid source IP address (for example, it cannot be a multicast or broadcast address) without checking the correctness.

  • If source-ip is not specified, and the IP address of the local interface is specified, the device uses the IP address of this local interface as the source IP address of the BFD packet. If neither source-ip nor the IP address of the local interface is specified, the device sets the source IP address of the BFD packet to 169.254.255.254. For example, if interface is set to an Eth-Trunk member interface, and source-ip is not specified, the source IP address of the BFD packet sent from the device is 169.254.255.254.
  • If you modify the IP address of the interface after the BFD session is set up, the source IP address of the BFD packet is not updated.

Follow-up Procedure

Run the discriminator { local discr-value | remote discr-value } command to correctly configure local and peer discriminators. Otherwise, BFD sessions cannot be established.

Run the default-ip-address command to change the default multicast IP address for BFD.

Run the commit command to commit the BFD configuration so that the configuration takes effect.

Example

# Configure a BFD session named test to detect the one-hop link bound to the local interface GigabitEthernet 0/0/1 with the default multi-cast IP address.

<sysname> system-view
[sysname] bfd
[sysname-bfd] quit
[sysname] bfd test bind peer-ip default-ip interface GigabitEthernet 0/0/1
[sysname-bfd-session-test]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >