Description |
This article describes why multiple OSPF neighbors in FortiGate get stuck in a 2-way state and offers a solution. |
Scope | FortiGate. |
Solution |
See one of the following articles if an OSPF neighbor is stuck in one of the other states: Troubleshooting Tip: OSPF – Neighbor stuck at loading. Troubleshooting Tip: OSPF neighbour stuck in EXTSTART/EXCHANGE state. Troubleshooting Tip: OSPF Neighbor stuck in INIT state.
In a broadcast domain, an OSPF router will establish a FULL adjacency only with DR and BDR.
config router ospf set router-id 192.168.1.1 config area edit 0.0.0.0 next end config ospf-interface edit "port3" set interface "port3" next end
If it is noticed that OSPF neighborship to DR and BDR routers is stuck in a 2-way state on the FortiGate after a change such as a firewall upgrade/reboot, find out the number of OSPF neighbors which are stuck in the Exstart/Exchange state.
get router info ospf neighbor
If there are 5 such neighbors in the Exstart/Exchange state, FortiGate will not respond with DBD packets to other OSPF neighbors that completed the 2-way and the Exstart state.
diagnose ip router ospf all enable diagnose ip router ospf level info diagnose debug console timestamp enable diagnose debug enable
Until those 5 Exstart/Exchange state neighbors transition into Full state, any new OSPF neighbors will be stuck in a 2-way state.
To clear the OSPF process, execute the following command so the OSPF neighborship will re-establish:
IPv4:
execute router clear ospf process
IPv6:
execute router clear ospf6 process
Note that once the OSPF process is cleared, all neighbors will be re-established and routes also will be cleared via OSPF and reinstalled into the routing table. |
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 2024 Fortinet, Inc. All Rights Reserved.