Establishing a BFD Session

You can establish a BFD session on both ends of a multi-hop link to rapidly detect faults in the multi-hop link.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Perform either of the following operations based on the scenario:

    • BFD for IPv4 session

      Run the bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ] [ source-ip source-ip ] [ track-interface [ interface| controller ] interface-type interface-number ] command to create the binding information about a BFD for IPv4 session.

      • If a BFD session for IPv4 is created for the first time, a peer IPv4 address must be specified for the BFD session, and the BFD session must be bound to the local interface. The binding cannot be modified after being created.
      • When a BFD session for IPv4 is created, the system checks only the validity of the IPv4 address format. Binding the BFD session for IPv4 to an incorrect remote or local IPv4 address results in a failure in establishing the BFD session for IPv4.
      • If BFD and unicast reverse path forwarding (URPF) are used together, source-ip must be configured correctly before a BFD session is bound to the interface to prevent BFD packets from being discarded. URPF checks the format of the source IPv4 addresses in received packets and discards the packets whose source IPv4 addresses are incorrect.
    • BFD for IPv6 session

      Run the bfd session-name bind peer-ipv6 peer-ipv6 [ vpn-instance vpn-name ] [ source-ipv6 source-ipv6 ] [ track-interface { interface | controller } interface-type interface-number ] command to create the binding information about a BFD for IPv6 session.

      • If a multi-hop BFD session for IPv6 is created for the first time, a peer IPv6 address must be specified for the BFD session, and the BFD session must be bound to the local interface. The binding cannot be modified after being created.
      • When a BFD session for IPv6 is created, the system checks only the validity of the IPv6 address format. Binding the BFD session for IPv6 to an incorrect remote or local IPv6 address results in a failure in establishing the BFD session for IPv6.
      • If BFD and URPF are used together, source-ip must be configured correctly before a BFD session is bound to the IPv6 address to prevent BFD packets from being discarded. URPF checks the format of the source IPv6 addresses in received packets and discards the packets whose source IPv6 addresses are incorrect.

  3. Run discriminator local discr-value

    The local discriminator of the BFD session is created.

  4. Run discriminator remote discr-value

    The remote discriminator of the BFD session is created.

    The local discriminators and remote discriminators on the two ends of a BFD session must be correctly associated. That is, the local discriminator of the local device must be the same as the remote discriminator of the remote device, and the remote discriminator of the local device must be the same as the local discriminator of the remote device. If the association is incorrect, a BFD session cannot be set up.

  5. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >