The ospfv3 bfd command enables BFD on an OSPFv3 interface and sets parameter values for a BFD session.
The undo ospfv3 bfd command disables BFD from an interface, or restores the default parameter values of a BFD session.
By default, BFD is not enabled on an OSPFv3 interface.
ospfv3 bfd { min-transmit-interval min-transmit-value | min-receive-interval min-receive-value | detect-multiplier detect-multiplier-value | frr-binding } * [ instance instance-id ]
undo ospfv3 bfd { min-transmit-interval [ min-transmit-value ] | min-receive-interval [ min-receive-value ] | detect-multiplier [ detect-multiplier-value ] | frr-binding } * [ instance instance-id ]
Parameter | Description | Value |
---|---|---|
min-transmit-interval min-transmit-value |
Specifies the minimum interval at which BFD packets are sent to the neighbor. |
The value is an integer ranging from 3 to 20000, in milliseconds. The default value is 10. |
min-receive-interval min-receive-value |
Specifies the minimum interval at which BFD packets are received from the neighbor. |
The value is an integer ranging from 3 to 20000, in milliseconds. The default value is 10. |
detect-multiplier detect-multiplier-value |
Specifies the local detection multiplier. |
The value is an integer ranging from 3 to 50. By default, it is 3. |
frr-binding |
Associates the BFD session status with the link status on an interface. |
- |
instance instance-id |
Indicates the ID of the instance to which the interface belongs. |
The value is an integer ranges from 0 to 255. |
100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, Global VE sub-interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
Either a link fault or topology change on a network will cause routes to be re-calculated within an area. As such, speeding up the convergence of a routing protocol is critical to improving the network performance.
As link faults are inevitable, rapidly detecting these faults and notifying routing protocols is an effective way to quickly mitigate them. This includes associating BFD with a routing protocol to speed up convergence of the routing protocol once a link fault occurs. During the configuration of OSPFv3 IP FRR, the lower layer can fast respond to the link change so that traffic can be rapidly switched to the backup link if the primary link fails. By setting frr-binding, you can associate the BFD session status with the link status of an interface (when the BFD session goes Down, the link status of the interface becomes Down) so that link faults can be rapidly detected.Prerequisites
BFD has been enabled on the interface.
Implementation Procedure
The receive-interval is negotiated by the local and peer ends by comparing the values of the local min-rx-interval and the peer min-tx-interval. If the local end fails to receive a BFD packet from the neighbor within an interval of receive-interval * multiplier-value, the local end considers the neighbor Down.
Configuration Impact
If global BFD is not enabled, BFD can be enabled on an interface. The BFD session, however, cannot be set up after BFD is enabled on the interface. If the parameters of a BFD session are set but the ospfv3 bfd enable command is not run, the BFD session cannot be set up.
The BFD configuration on an interface takes precedence over that in a process. If BFD is enabled on an interface, a BFD session is established according to the BFD parameters set on the interface.Follow-up Procedure
Run the display ospfv3 bfd session command to view the information about neighbors enabled with BFD.
Precautions
After BFD is enabled, a device sets up BFD sessions with only adjacencies.
The ospfv3 bfd enable command and ospfv3 bfd block command are mutually exclusive in function, and the later configuration overwrites the previous one. After BFD is disabled from an interface using the undo ospfv3 bfd enable command, the parameters for setting up BFD sessions remain on this interface but no longer take effect.<HUAWEI> system-view [~HUAWEI] ospfv3 1 [*HUAWEI-ospfv3-1] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ipv6 enable [*HUAWEI-GigabitEthernet0/1/0] ospfv3 1 area 0 [*HUAWEI-GigabitEthernet0/1/0] ospfv3 bfd enable [*HUAWEI-GigabitEthernet0/1/0] ospfv3 bfd min-receive-interval 40 detect-multiplier 4