bfd fast-detect
To enable Bidirectional Forwarding Detection (BFD) to detect failures in the path between adjacent forwarding engines, use the bfd fast-detect command in the appropriate configuration mode. To return the software to the default state in which BFD is not enabled, use the no form of this command.
bfd fast-detect [ disable | strict-mode | strict-mode-negotiate | override ]
no bfd fast-detect [ disable | strict-mode | strict-mode-negotiate | override ]
Syntax Description
disable |
Disables the detection of failures in the path between adjacent forwarding engines for a specified entity, such as a BGP neighbor or OSPF interface. |
||
ipv4 |
Enables Intermediate System-to-Intermediate System (IS-IS) BFD detection of failures in the path between adjacent forwarding engines.
|
||
strict-mode |
Prevents the establishment of BGP neighbor session until the BFD session is also up and running. This behaviour is in compliance with Cisco's propriety definition of BFD. |
||
strict-mode-negotiate |
Holds down the neighbor session until BFD session is up. This behaviour is in compliance with the IETF standards. |
||
override |
Enforce the IETF strict mode for BFD, regardless of the capabilities negotiated between the two peers. |
Command Default
BFD detection of failures in the path between adjacent forwarding engines is disabled.
Command Modes
Neighbor configuration
Session group configuration
Neighbor group configuration
Interface configuration
Interface configuration
Router configuration
Area configuration
Area interface configuration
Interface configuration
ARP host-tracking configuration
Command History
Release |
Modification |
---|---|
Release 6.1x |
This command was introduced. |
Release 24.1.1 |
This command was made available in the host-tracking configuration mode. |
Release 24.3.1 |
This command was modified. The keywords strict-mode-negotiate and override were added. |
Usage Guidelines
Note |
BFD can support multihop for internal and external BGP peers. |
Use the bfd fast-detect command to provide protocol- and media-independent, short-duration failure detection of the path between adjacent forwarding engines, including the interfaces and data links.
BFD must be configured on directly connected neighbors for a BFD session to be established between the neighbors.
In OSPF and OSPF3 environments, the setting of the bfd fast-detect command is inherited from the highest-level configuration mode in which the command was configured. From the lowest to the highest configuration modes, the inheritance rules are as follows:
-
If you enable BFD in area interface configuration mode, it is enabled on the specified interface only.
-
If you enable BFD in area configuration mode, it is enabled on all interfaces in the specified area.
-
If you enable BFD in router configuration mode, it is enabled on all areas and all associated interfaces in the specified routing process.
In OSPF environments, the disable option enables you to override the inheritance rules described previously. For example, if you enable BFD in an OSPF area, BFD is enabled on all interfaces in that area. If you do not want BFD running on one of the interfaces in that area, you must specify the bfd fast-detect disable command for that interface only.
To disable BFD or return the software to the default state in which BFD is not enabled in IS-IS router configuration mode, you must enter the no bfd fast-detect command.
Task ID
Task ID |
Operations |
---|---|
bgp |
read, write |
isis |
read, write |
ospf |
read, write |
Examples
The following example shows how to configure BFD on a BGP router:
Router#(config)# route-policy pass-all
Router#(config-rpl)# pass
Router#(config-rpl)# end-policy
Router#(config-rpl)# end
Router## configure
Router#(config)# router bgp 65000
Router#(config-bgp)# bfd minimum-interval 3
Router#(config-bgp)# address-family ipv4 unicast\
Router#(config-bgp-af)# exit
Router#(config-bgp)# neighbor 192.168.70.24
Router#(config-bgp-nbr)# remote-as 2
Router#(config-bgp-nbr)# address-family ipv4 unicast
Router#(config-bgp-nbr)# bfd fast-detect
Router#(config-bgp-nbr)# route-policy pass-all in
Router#(config-bgp-nbr)# route-policy pass-all out
The following example shows how to configure host tracking using BFD:
Router#(config)# interface BVI1
Router#(config-if)# host-tracking
Router#(config-if-host-tracking)# bgp-gateway
Router#(config-if-host-tracking)# arp
Router#(config-if-host-tracking-arp)# bfd fast-detect
The following example shows how to configure the BGP BFD strict-mode negotiate mode, requiring mutual capability advertisement for active BGP and BFD session linkage.
Router# configure
Router#(config)# router bgp 65000
Router#(config-bgp)# neighbor 192.168.70.24
Router#(config-bgp-nbr)# bfd fast-detect strict-mode-negotiate
The following example show how to configure the BGP BFD strict-mode negotiate override mode to enforce IETF strict mode operation regardless of peer advertisement, ensuring BGP session establishment only after the activation of the BFD session.
Router# configure
Router#(config)# router bgp 65000
Router#(config-bgp)# neighbor 192.168.70.24
Router#(config-bgp-nbr)# bfd fast-detect strict-mode-negotiate override