Technical Tip: Bidirectional Forwarding Detection (BFD) with BGP
| Description | This article describes the process of configuring Bidirectional Forwarding Detection (BFD) with BGP. |
| Scope | FortiOS. |
| Solution | Bidirectional Forwarding Detection (BFD) is a lightweight, low-overhead protocol that provides rapid detection of failures in the bidirectional path between two forwarding engines. On FortiGates, BFD integrates seamlessly with dynamic routing protocols like Border Gateway Protocol (BGP) to accelerate neighbor failure detection and routing convergence.
This integration is particularly valuable in:
Configuration steps: Enable BFD Globally (recommended):
config system settings
Enable BFD on interfaces: config system interface
Single-Hop eBGP with BFD:
On FortiGate A:
config router bgp
Repeat symmetrically on FortiGate B.
Multihop eBGP with BFD: Additional steps for non-direct peers:
On FortiGate A:
config system settings
config system interface
config router bgp
Multihop templates (optional for custom timers/auth).
Be cautious if using BFD when Graceful-Restart is configured. Combining them is not recommended. BFD can detect the temporary unavailability and trigger immediate session/route withdrawal on the peer side, defeating the purpose of Graceful-Restart.
Verification commands:
Troubleshooting: Capture BFD packets (UDP ports 3784 control, 3785 echo if used):
diagnose sniffer packet any "port 3784" 4
Multi-hop BFD uses UDP port 4784.
diagnose sniffer packet any "port 4784" 4
Enable BFD debugging:
diagnose debug application bfdd -1
Related articles: |
