| Description |
This article explains how to troubleshoot a FortiGate scenario where multiple eBGP neighbors are configured on the same interface, but the sessions remain in the Idle state even though ICMP and TCP/179 connectivity are working correctly.
|
| Scope | FortiOS, FortiGate-VM. |
| Solution |
Sample Topology:
In this scenario, two devices establish eBGP sessions with a FortiGate-VM deployed in Azure. All peers connect through the same FortiGate interface (port2) because the Azure VM operates with a single vNIC per subnet.
Although ping and TCP reachability are confirmed, the BGP sessions remain in Idle.
get router info bgp summary VRF 0 BGP router identifier 10.110.1.4, local AS number 65010
Verify Interface and Connectivity: The peers are connected to the same interface and are reachable over Layer-3.
get system interface physical
execute ping 10.100.0.4
Both neighbors reply successfully, confirming that connectivity and routing are correct.
Analyze TCP Session Using Sniffer: A sniffer capture shows the TCP handshake completes, followed immediately by a TCP RST packet from FortiGate.
diagnose sniffer packet any "host 10.100.0.4 or host 10.100.2.4 and port 179" 4 0 a
10.100.0.4.38925 -> 10.110.1.4.179: SYN
This behavior indicates that the FortiGate BGP process is rejecting the TCP connection at the application layer.
Review BGP Debug Logs: To analyze why the FortiGate rejects the connection, debug logs are collected.
diagnose debug reset
BGP: [NETWORK] Accept Thread: Incoming conn from host 10.100.0.4
The debug logs indicate that FortiGate accepts incoming TCP connections from both BGP peers but immediately transitions each neighbor’s Finite State Machine (FSM) back to the Idle state.
This behavior confirms that while the FortiGate is reachable over TCP/179, the BGP process does not progress beyond the Idle state because the neighbors are connected through the same interface and are treated as multi-hop peers.
Root Cause: When multiple eBGP neighbors are connected to the same interface, FortiGate treats them as multi-hop peers rather than directly connected neighbors.
Solution:
config router bgp config neighbor
After updating the configuration, restart the BGP process:
execute router clear bgp all
After enabling eBGP multihop, both BGP sessions establish successfully.
get router info bgp summary Neighbor AS MsgRcvd MsgSent InQ OutQ Up/Down State/PfxRcd
Both neighbors transition from Idle to Established.
Additional Verification:
When multiple eBGP neighbors are connected through the same FortiGate interface, the firewall may treat the peers as multi-hop neighbors.
|
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.