Configuring the BFD Protocol for OSPF

The ip ospf bfd-liveness-detection and ipv6 ospf bfd-liveness-detection commands configure the Bidirectional Forwarding Detection (BFD) protocol for OSPFv2 and OSPFv3 (respectively). The BFD protocol uses control packets and shorter detection time limits to more rapidly detect failures in a network. Also, because they are adjustable, you can modify the BFD timers for more or less aggressive failure detection.

When you issue the ip ospf bfd-liveness-detection or ipv6 ospf bfd-liveness-detection command on an OSPF peer, the peer establishes BFD liveness detection with all BFD-enabled OSPF peers. When the local peer receives an update from a remote OSPF peer—if BFD is enabled and if the session is not already present—the local peer attempts to create a BFD session to the remote peer.

Each adjacent pair of peers negotiates an acceptable transmit interval for BFD packets. The negotiated value can be different on each peer. Each peer then calculates a BFD liveness detection interval. When a peer does not receive a BFD packet within the detection interval, it declares the BFD session to be down and purges all routes learned from the remote peer.

Note: Before the router can use the ip ospf bfd-liveness-detection or ipv6 ospf bfd-liveness-detection command, you must specify a BFD license key. To view an already configured license, use the show license bfd command.

For general information about configuring and monitoring the BFD protocol, see JunosE IP Services Configuration Guide.

ip ospf bfd-liveness-detection

ipv6 ospf bfd-liveness-detection