FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
asoni
Staff
Staff
Article Id 352981
Description This article describes how to run BGP debugs for a specific neighbor when multiple BGP neighbors are configured.
Scope FortiOS 7.2.x and above.
Solution

When multiple BGP neighbors are configured and it is required to focus only on a specific neighbor, the following filter command can be used along with other BGP debug commands:

 

diag ip router bgp all enable
diag ip router bgp level info
diag ip router bgp set-filter neighbor a.b.c.d <replace a.b.c.d with neighbor address>
diag debug enable

 

In the following example, FortiGate is configured with two BGP neighbors - i.e 192.168.1.190 and 192.168.1.191.

 

BGP summary.JPG

 

When running debug commands without filter, debug output for both neighbors will be shown:

 

BGP debug without filter.JPG

 

When running debug commands with filter, it is possible to only capture output for a specified neighbor - i.e 192.168.1.191:

 

BGP debug with filter.JPG

 

Contributors