Skip to main content
dangelov
Visitor III
Feb 26, 2025 9:49 AM UTC
Question

ECMP with OSPF

Hi all,

Do I need to configure/enable ECMP for OSPF or does it work by default? I know that it needs to be enabled for BGP.

I have the below scenario with OSPF between all 4 firewalls.

Currently using statics for 3 to get to 4 and 4 to 3, as there are 2 equal cost paths.

If I remove the statics will the Fortigates be load balancing over the 2 paths or do I need to enable something on ECMP or OSPF? I was worried about asymmetric routing.  

Capture.PNG

4 replies

Toshi_Esumi
SuperUser
SuperUser
Feb 26, 2025 4:50 PM UTC

If you're concerning about routes between FGT3 and FGT4, at least path1: 3-2-4 and path2:3-1-2-4 have different total costs. So both sides use path1 to take the shortest path. And it's automatic by OSFP protocol.

Toshi

Translate
dangelov
dangelovAuthor
Visitor III
Feb 26, 2025 5:19 PM UTC

Toshi_Esumi thank you for your reply.

For router 3 path 3-1-4 equals path 3-2-4 and

for router 4, 4-1-3 and 4-2-3 are equal, so they will appear in the routing table. Currently using statics with link monitor, but I do not like statics and would be nice to load balance.

Thanks for answering my question.

Is there a documentation that explains the usage of the different ECMP modes?

Translate
Toshi_Esumi
SuperUser
SuperUser
Feb 26, 2025 5:30 PM UTC

There is no "different ECMP modes". But need to enable RFC1583 compatibility.
https://community.fortinet.com/t5/FortiGate/Technical-Tip-OSPFv2-ECMP-for-External-Routes-Expected-Behavior/ta-p/216048

Toshi

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024