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
In the following example, FortiGate is configured with two BGP neighbors - i.e 192.168.1.190 and 192.168.1.191.
When running debug commands without filter, debug output for both neighbors will be shown:
When running debug commands with filter, it is possible to only capture output / filter BGP debug for a specified neighbor - i.e 192.168.1.191:
To show the current filter, run:
dia ip router bgp show
To reset the BGP filter:
diag ip router bgp set-filter reset
To disable BGP debugs:
diag ip router bgp all disable diag ip router bgp level none diag debug reset
|