Description

Discover the scenario where the local preference value becomes 0 for specific BGP routes in this KB article.

Symptoms

  • BGP Routes Displaying Local Preference Value of 0
  • Sample Output:

root@JTAC-SRX> show route brief

 

inet.0: 160 destinations, 253 routes (153 active, 0 holddown, 22 hidden)

+ = Active Route, - = Last Active, * = Both

192.168.1.10/16    *[BGP/170] 1d 10:53:39, localpref 100

           AS path: 12345 I, validation-state: unverified

          > to 10.0.0.25 via reth0.420

          [BGP/170] 01:23:50, localpref 0 >>>>

           AS path: 6789 12345 I, validation-state: unverified

          > to 172.16.0.50 via st0.26

Solution

The SRX setting the local preference to 0 in the context of BGP is likely due to the injection of the 'graceful_shutdown' BGP community by a BGP peer device. In BGP, the local preference attribute is a critical factor in route selection, influencing the preferred exit point for outgoing traffic. To resolve this issue, it is necessary to review and correct the configuration on BGP peer devices, ensuring that the application of the 'graceful_shutdown' community aligns with network policies and does not unintentionally affect the local preference on the SRX.

Modification History

2024-01-24 : Article Created