.. _example_protocols_bgp_parameters_log-neighbor-changes: #################### Log-Neighbor-Changes #################### Scenario to verify BGP **log-neighbor-changes** parameter configuration. By default, BGP does not log neighbor state changes to syslog. The ``log-neighbor-changes`` parameter enables logging of BGP neighbor state transitions (up/down) and the reason for the change. This is useful for troubleshooting and monitoring BGP session stability. In this test, **DUT0** (AS 20) establishes an iBGP session with **DUT1** (AS 20) with ``log-neighbor-changes`` enabled. After the session is established, a shutdown is applied to trigger a state change. The test then verifies that the neighbor change event appears in the system logs. ***************************** Test BGP Log Neighbor Changes ***************************** Description =========== This test verifies that ``log-neighbor-changes`` causes BGP to log neighbor state transitions to syslog. After establishing an iBGP session with the parameter enabled, a shutdown is applied to the neighbor on **DUT0**, and the system logs are checked for the neighbor change event. Scenario ======== .. include:: log-neighbor-changes/testbgplogneighborchanges .. raw:: html