bfd bind peer-ip default-ip

Function

The bfd bind peer-ip default-ip command creates a BFD session with a multicast address configured as a peer address and displays the BFD session view.

By default, no BFD session with a multicast address configured as a peer address is created.

Format

bfd sessname-value bind peer-ip default-ip interface { interface-name | interface-type interface-number } [ source-ip source-ip ]

Parameters

Parameter Description Value
sessname-value

Specifies the BFD session name.

The value is a string of 1 to 64 characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string.

  • When the name of a BFD session is configured, the uppercase and lowercase letters in the name must be the same as what you enter.
  • BFD session names are case-insensitive. For example, ABC and abc are regarded as the same BFD session. If you have configured ABC as the name of a BFD session, the ABC BFD session view is directly displayed when you configure abc.
interface interface-type interface-number

Specifies the local interface to which a BFD session is bound.

-

source-ip source-ip

Specifies the source IP address carried in a BFD packet. If no source IP address is specified, a device uses a source IP address in either of the following modes before sending BFD packets:

  • During negotiation on BFD session parameters, the device searches for the IP address of an outbound interface connected to the remote end in the local routing table as the source IP address before sending BFD packets.
  • During BFD detection, the device sets the source IP address to a fixed value.

The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bfd write

Usage Guidelines

Usage Scenario

A BFD session is established to rapidly detect link faults. If the physical status of a link is to be monitored and the peer IP address is unavailable (for example, when no peer IP address exists on an Eth-Trunk member link), the bfd bind peer-ip default-ip command can be used to create a BFD session to monitor the physical status.

Prerequisites

BFD has been globally enabled using the bfd command in the system view.

Configuration Impact

Run the bfd bind peer-ip default-ip command to create a BFD session to monitor the physical status.

Precautions

  • The bfd bind peer-ip default-ip command must be run on both ends of a link because BFD detects faults in a bidirectional link.
  • If the IP address of the outbound interface is changed after a BFD session has been created, either of the following situations occurs:
  • During negotiation, the source IP address to be carried in BFD packets is updated.
  • During detection, the source IP address carried in BFD packets is not updated.
  • Local and remote discriminators must be different on a device for multicast BFD sessions.

    If multicast BFD for 1:1 Eth-Trunk members has been configured and the process-pst command has been run, you must run the process-interface-status command to ensure that the interface states detected on the forwarding and control planes are the same. You may or may not run the process-interface-status command in other cases.

    You can run the undo bfd session-name command to delete a specified BFD session and its binding information.

Example

# Create a BFD session named atob and use it to detect faults in a single-hop link on.
<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd atob bind peer-ip default-ip interface GigabitEthernet 0/1/0
[*HUAWEI-bfd-session-atob]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >