Configuring the BFD Echo Function
Pre-configuration Tasks
Before configuring the BFD Echo function, complete the following tasks:
Connect interfaces properly.
Correctly configure an IP address for the Layer 3 interface.
Procedure
- Run system-view
The system view is displayed.
- Run bfd
BFD is enabled globally and the BFD view is displayed.
By default, BFD is disabled globally.
- Run quit
Return to the system view.
- Run bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-instance-name ] interface interface-type interface-number [ source-ip ip-address ] one-arm-echo
A BFD session supporting the BFD Echo function is configured.
By default, the BFD Echo function is not configured.
The BFD Echo function is only applicable to single-hop BFD sessions.
When the BFD Echo function is configured, the device uses the IP address of the outbound interface as the source IP address by default. In this case, you must manually configure the value of source-ip ip-address to be different from the IP address of the outbound interface. This is because some devices will discard packets in which the source and destination IP addresses are the same.
When URPF is enabled on the remote device, the remote device must have a route to the IP address specified by source-ip ip-address so that BFD packets are not incorrectly discarded.
- Run discriminator local discr-value
The discriminator for the BFD session is configured.
You can only configure the local discriminator because the BFD Echo function is only configured on one device supporting BFD.
- Run commit
The configuration is committed.