Created on
05-29-2024
09:32 PM
Edited on
01-23-2025
10:42 PM
By
Anthony_E
Description | This article describes how to achieve fast BGP convergence over an IPSec overlay when the underlay connection is unstable. |
Scope | FortiGate. |
Solution |
In a setup with two WAN connections and two corresponding overlay IPSec tunnels to a HUB, where the HUB has only one WAN connection, it is crucial to ensure rapid BGP convergence during link failure and recovery. When the primary WAN link and its associated tunnel fail, the secondary IPSec tunnel and BGP should quickly converge. Upon recovery of the primary connection, the BGP neighborship on the primary tunnel should re-establish and converge swiftly.
To achieve this, apply the following configurations to the IPSec phase-interface and BGP neighbor settings.
Enable Dead Peer Detection (DPD) on the Tunnel:
These settings ensure the IPSec tunnel takes 30 seconds to detect a dead peer and initiates failover procedures. These parameters can be modified for quicker failover. Ensure that DPD parameters are not too low as they can cause network congestion.
Enable Link-Down Failover in BGP for Neighborship with HUB and adjust the connect, keepalive, and hold timer. This ensures the BGP neighborship is immediately torn down when the associated IPSec tunnel goes down, preventing traffic from routing through an unavailable interface.
Configuration Steps:
IPSec Tunnel Configuration:
config vpn ipsec phase1-interface
BGP Neighbor Configuration:
config router bgp set holdtime-timer 15 set connect-timer 1 end
Benefits:
By applying these configurations, fast and reliable BGP convergence is ensured over IPSec tunnels in environments with unstable underlay connections on FortiGate devices. This enhances the network's resilience and performance. Facilitating the fastest BGP route failovers Timers used for speedup Convergence, Failover and Recovery in ADVPN/SD-WAN setup |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.