You can establish a BFD session on both ends of a direct link to rapidly detect link faults.
The system view is displayed.
To bind the BFD session to a Layer 3 interface with an IP address, run bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ] [ interface interface-type interface-number ] [ source-ip source-ip ]
A BFD session for IPv4 is bound to a Layer 3 interface.
To bind the BFD session to a Layer 2 interface or a Layer 3 member interface without an IP address, run bfd session-name bind peer-ip default-ip interface interface-type interface-number [ source-ip source-ip ]
A BFD session for IPv4 is bound to an interface.
To bind the BFD session to a sub-interface for dot1q VLAN tag termination:
To bind the BFD session to a sub-interface for QinQ VLAN tag termination:
Run bfd session-name bind peer-ipv6 peer-ipv6 [ vpn-instance vpn-name ] [ interface interface-type interface-number ] [ source-ipv6 source-ipv6 ]
A BFD session for IPv6 is bound to an interface.
The local discriminator of the BFD session is created.
The remote discriminator of the BFD session is created.
The local 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.
The configuration is committed.