Technical Tip: How to investigate BGP neighborship flap
Description | This article describes how to troubleshoot BGP interruptions. |
Scope | FortiGate. |
Solution | The packet that is sent to tear down the neighborship is the Notification packet and includes information why the action was taken.  In case only a flap was observed and the BGP neighborship is stable, the Router event logs can be checked via GUI under Log & Report -> System Events -> Router Events.  As a filter, LOG ID 20304 can be used:  ![]()  In this example, logs indicate different reasons why the neighborship was torn down, e.g., Hold Timer Expired, Administratively shutdown.  When the neighborship is not stable and flaps are still occurring, live troubleshooting can be performed to identify what is causing the issue.  To debug the BGP process:   To disable debugs:   Note: Starting from v7.2.0+, it is possible to collect BGP debugs for a specific neighbor by using the filter command 'diagnose ip router bgp set-filter neighbor <neighbor address>'. For more information, see this article: Technical Tip: Capture BGP debugs for a specific neighbor.  In the debug output, the notification packets can be identified, and the reason is displayed:   The notification packet can also be analyzed in packet capture in the Wireshark format: ![]()  To capture the BGP packets, use port 179 as a filter. See this article: Troubleshooting Tip: Packet Capture on FortiOS GUI.  By collecting the BGP debug and the packet capture while the flaps are occurring, additional analysis can be performed on the packets exchanged between the peers to identify the cause of the issue.  Notes:
|


