Description | This article describes the feature 'max-neighbor-num' in BGP configuration under neighbor-range. |
Scope | FortiGate. |
Solution |
The 'max-neighbor-num' is a limit that controls how many dynamic BGP sessions can be established from the IP range defined in prefix inside config neighbor-range. This feature prevents the FortiGate from being overwhelmed by limiting the number of neighbors that it will actually allow. The configuration example is shared below.
IPv6: config neighbor-range6 set neighbor-group "FGT" When dynamic peers inside the prefix attempt to establish BGP, the FortiGate will accept them only until the maximum number is reached. Once the limit is hit, additional peers from that range will be denied and no new sessions will be formed.
The default value of the 'max-neighbor-num' is zero ('0') for both IPv4 and IPv6 address group. In case if the neighbor works but the neighbor-range does not work for BGP neighbor establishment, make sure the 'max-neighbor-num' is a non-zero value and set to the expected number according to the volume of valid neighbors.
Related arrticle: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.