Configuring Bidirectional Forwarding Detection
The bidirectional forwarding detection (BFD) protocol is a simple hello mechanism that detects failures in a network. BFD works with a wide variety of network environments and topologies. The failure detection timers for BFD have shorter time limits than the failure detection mechanisms of IS-IS, providing faster detection. These timers are also adaptive and can be adjusted to be more or less aggressive. By default, BFD is supported on single-hop static routes.
To enable failure detection, include the
bfd-liveness-detectionstatement:static route {bfd-liveness-detection {detection-time {thresholdmilliseconds;}local-addressip-address;minimum-intervalmilliseconds;minimum-receive-intervalmilliseconds;minimum-receive-ttlmilliseconds;transmit-interval {thresholdmilliseconds;minimum-intervalmilliseconds;}multipliernumber;version (0 | 1 | automatic);}}To specify a threshold for detecting the adaptation of the detection time, include the
thresholdstatement:static route {bfd-liveness-detection {detection-time {thresholdmilliseconds;}To specify the minimum transmit and receive interval for failure detection, include the
minimum-intervalstatement:static route {bfd-liveness-detection {minimum-intervalmilliseconds;}}To specify only the minimum receive interval for failure detection, include the
minimum-receive-intervalstatement:static route {bfd-liveness-detection {minimum-receive-intervalmilliseconds;}}To specify the transmit threshold for detecting the adaptation of the transmit interval, include the
thresholdstatement:static route {bfd-liveness-detection {transmit-interval {thresholdmilliseconds;}}}The threshold value must be greater than the transmit interval.
To specify only the minimum transmit interval for failure detection, include the
minimum-intervalstatement:static route {bfd-liveness-detection {transmit-interval {minimum-intervalmilliseconds;}}To specify the detection time multiplier for failure detection, include the
multiplierstatement:static route {bfd-liveness-detection {multipliernumber;}}To specify the BFD version, include the
versionstatement:static route {bfd-liveness-detection {version (0 | 1 | automatic);}}For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.
NOTE: If BFD is configured only on one end of a static route, the route is removed from the routing table. BFD establishes a session when BFD is configured on both ends of the static route.
NOTE: BFD is not supported for IPv6 or ISO address families.
NOTE: You cannot enable graceful switchover when BFD is configured.
The JUNOS software also supports BFD over multihop static routes. For example, you can configure BFD over a Layer 3 path to provide path integrity over that path. You can limit the number of hops by specifying the time-to-live (TTL).
To configure BFD over multihop static routes, include the following statements:
static route {bfd-liveness-detection {local-addressip-address;minimum-receive-ttlmilliseconds;}}To specify the source address for the multihop static route and to enable multihop BFD support, include the
local-addressstatement.To specify the number of hops, include the
minimum-receive-ttlstatement. For a single-hop BFD session, this value must be 255. The TTL configuration is optional.For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.