Before configuring single-hop BFD, complete the following tasks:
Configure link layer protocol parameters for interfaces to ensure that the link layer protocol status on the interfaces is Up.
Configure an IP address for the Layer 3 interface.
The system view is displayed.
BFD is enabled globally and the BFD view is displayed.
By default, BFD is disabled globally.
The default multicast IP address for BFD is configured.
By default, BFD uses the multicast IP address 224.0.0.184.
If multiple BFD sessions exist on a path, for example, Layer 3 interfaces are connected through Layer 2 switching devices that support BFD, configure different default multicast IP addresses for the devices where different BFD sessions are established. In this manner, BFD packets can be correctly forwarded.
Return to the system view.
Select proper parameters to create a BFD session based on IPv4 links.
On a Layer 3 interface that has an IP address configured, run bfd session-name bind peer-ip ip-address [ vpn-instance vpn-name ] interface interface-type interface-number [ source-ip ip-address ]
The binding information of the BFD session is configured.
By default, no BFD session is created.
When creating a single-hop BFD session for the first time, bind the single-hop BFD session to the peer IP address and the local address. To modify a configured BFD session, delete it and recreate a new one.
When the BFD configuration items are created, the system checks only the format of the IP address. The BFD session cannot be established if an incorrect peer IP address or source IP address is bound.
On a Layer 2 interface or a Layer 3 interface without an IP address, run bfd session-name bind peer-ip default-ip interface interface-type interface-number [ source-ip ip-address ]
The binding information of the BFD session is configured.
By default, no BFD session is created.
MAC address flapping still occurs even a multicast BFD session is created on the ring network where a loop prevention protocol is configured. This is because multicast BFD packets can be forwarded on the blocked interface.
Create a BFD session based on IPv6 links.
Run bfd session-name bind peer-ipv6 ipv6-address [ vpn-instance vpn-instance-name ] interface interface-type interface-number [ source-ipv6 ipv6-address ]
The binding information of the BFD6 session is configured.
When creating a single-hop BFD6 session for the first time, bind the single-hop BFD6 session to the peer IPv6 address and the local address. In addition, the configuration of the single-hop BFD6 session cannot be modified after the session is created.
When configuring the BFD6 session, the system checks only the format of the peer IPv6 address rather than its correctness. A BFD6 session cannot be established if an incorrect peer IPv6 address or source IPv6 address is bound.
The local discriminator is set.
The remote discriminator is set.
The local discriminator of the local system must be the same as the remote discriminator of the remote system; the remote discriminator of the local system must be the same as the local discriminator of the remote system. Otherwise, BFD sessions cannot be established. After the local discriminator and the remote discriminator are configured, you cannot modify them.
If a BFD session is bound to the default multicast address, the local discriminator and the remote discriminator must be different.
The configuration is committed.