Description |
This article provides troubleshooting tips and possible causes of the BGP peering issue between FortiGate and AWS. |
Scope | FortiOS. |
Solution |
The number of advertised networks/prefixes that AWS can take from its BGP neighbor/peer is 100 (one hundred); this is hard-coded and cannot be changed, therefore the idea of asking AWS to change this value will not fly.
In a new BGP deployment to AWS (which failed to come up), if initial BGP troubleshooting like checking layer 3 reachability between the peers, ensuring no misconfiguration on both sides, etc. has been ruled out, the FortiGate peering with the AWS may be advertising too many prefixes (more than permitted), to its peer (AWS).
Note: This can also happen in an old setup, which has been up and running, but additional prefixes were advertised to AWS recently, causing the maximum number of prefixes to trigger.
As mentioned before, if the number of prefixes advertised is beyond the permitted number, the BGP neighbor will fail to form (established), or break if the neighbor-ship has been established before receiving more than the allowed prefixes.
Just to make sure this is the cause of the 'peering failure', run below BGP debug command on FortiGate:
diag debug reset diag ip router bgp all enable diag ip router bgp level info diag debug enable
Look for the below information in the debug output (logs):
%BGP-3-NOTIFICATION: received from x.x.x.x 6/1 (Cease/Maximum Number of Prefixes Reached)
From the above information, the peering was refused by the neighbor and the reason was stated: 'Maximum Number of Prefixes Reached'.
Reduce the number of prefixes advertised to the AWS by doing any of the following:
If the prefixes advertised to the AWS are contiguous, summarizing it can reduce the number drastically. For example:
This can be summarized as 192.168.0.0/21 (reducing advertised networks/prefixes from 7 to just 1).
|
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.