Created on
‎02-26-2025
11:13 AM
Edited on
‎08-27-2025
01:24 AM
By
Jean-Philippe_P
| Description | This articles describes the reason behind BGP status commands 'get router info bgp neighbors' and 'get router info bgp summary' not showing any neighbor information when BGP is configured with neighbor-group and range. |
| Scope | FortiGate. |
| Solution |
When BGP peers are from the same subnet, FortiGate can be configured using neighbor-group and range options instead of configuring each BGP peer. This is useful in Hub and spoke implementation, where dial-up clients are from the same IP range or subnet and initiate the BGP once the VPN gets connected.
When FortiGate is configured with a neighbor-group and range, FortiGate will only respond to BGP requests and establish the BGP peering when there is a request.
In the scenario below:
Fortinet1, Fortinet2, and Fortinet3 are connected in a mesh topology, and their IP fall under the 192.168.0.0/29 subnet.
To minimize the configuration as mentioned earlier, neighbor-group and range should not be used here since all of the BGP peers will become passive (even disabling passive will not help), and none of the FortiGates will initiate the BGP connection.
Fortinet1 configuration:
config router bgp
Fortinet2 configuration:
config router bgp
Fortinet1:
Fortinet1 # diagnose sniffer packet any " port 179" 4 0 l
Fortinet1 # get router info routing-table database Routing table for VRF=0
Fortinet1 # get router info bgp neighbors
Fortinet2:
Fortinet2 # diagnose sniffer packet any " port 179" 4 0 l
Fortinet2 # get router info routing-table database Routing table for VRF=0
Fortinet2 # get router info bgp neighbors
Removing the neighbor-group and range in Fortinet2 and configuring Fortinet1 as a neighbor will result in establishing BGP neighborship.
Fortinet2 (bgp) # show
VRF 0 BGP router identifier 10.10.20.1, local AS number 64512 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd Total number of neighbors 1
Fortinet2 # get router info bgp neighbors <----- Shows details of the neighbors, including: Peer IP address, router ID, remote AS, BGP state, and the negotiated capabilities. |
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.