Technical Tip: Graceful restart feature not supported with BGP neighbor-group and neighbor-range commands
| Description | This article describes issues with the Graceful Restart feature when used with BGP neighbor groups and neighbor-range commands. |
| Scope | FortiGate, FortiOS. |
| Solution | When multiple BGP neighbors must be configured, administrators may streamline the process by creating BGP neighbor groups and neighbor-range commands.
As an example:
config router bgp
Administrators typically also enable the Graceful Restart feature to prevent network disruptions and packet loss during an HA failover or when the primary FortiGate in an HA cluster is rebooted.
When using a BGP neighbor-group is used, packet loss may occur during failover testing.
Conclusion: Since neighbor-groups are passive and cannot trigger a re-connection, it is expected that neighbor-groups defined with neighbor-range cannot perform Graceful Restart when it is the side that initiates a restart.
To prevent packet loss using BGP neighbor-groups on SD-WAN Hubs, each spoke must activate the route-stale option on BGP neighborship with each Hub:
config router bgp config neighbor edit Y.Y.Y.Y set stale-route enable next end
Instead, in order to benefit fully from the Grace Restart feature, BGP configuration would need to be modified to manually configure neighbors instead of neighbor-groups defined with neighbor-range.
Note:
diagnose ip router bgp all enable diagnose ip router bgp level info diagnose debug enable
To disable:
diagnose ip router bgp all disable diagnose debug disable
To check Graceful Restart capabilities and packet exchange differences between the BGP peers, the following sniffer can be run, or a packet capture can be run in the GUI under the Diagnostics page. diagnose sniffer packet any 'port 179' 6 0 l
CTRL+C to stop. Related articles: Technical Tip: Configuring FortiGate HA and BGP graceful-restart to avoid traffic interruption during an HA failover |
