• Contact
  • About Me
  • Privacy Policy
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
DefenceDev
No Result
View All Result
ADVERTISEMENT
Home Network Tutorials FortiGate

Fortinet FortiGate: Equal Cost Multipath Routing (ECMP) Configuration

neo by neo
May 27, 2025
in FortiGate
0
Fortinet FortiGate: Equal Cost Multipath Routing (ECMP) Configuration

Fortinet FortiGate: Equal Cost Multipath Routing (ECMP) Configuration

0
SHARES
140
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Equal Cost Multipath Routing (ECMP) Configuration

Equal Cost Multipath Routing (ECMP) is a network feature that enables traffic distribution across multiple paths with the same routing cost, allowing routers like FortiGate to enhance load balancing and redundancy within a network. With ECMP, organizations can achieve efficient utilization of multiple WAN connections, reduce latency, and avoid single points of failure.

In FortiGate, ECMP is especially valuable for businesses that rely on multiple ISPs or need high availability, allowing traffic to flow seamlessly even if one path goes down. This article covers how ECMP works, its use cases, and a step-by-step guide to configuring and optimizing ECMP on FortiGate devices.

Equal Cost Multipath Routing (ECMP)

ECMP is a routing strategy that enables a router to balance network traffic across multiple paths with the same cost. This mechanism uses load-sharing techniques to distribute traffic, effectively utilizing all available bandwidth and enhancing network resilience. In contrast to traditional routing, where only one path is chosen even if multiple paths exist, ECMP allows FortiGate to consider all paths with equal cost for data transmission.

Benefits of ECMP on FortiGate

  • Load Balancing: ECMP helps distribute the network load evenly, preventing any single link from becoming overburdened.
  • Redundancy and Resilience: ECMP automatically shifts traffic to an alternate path if one path fails, ensuring uninterrupted service.
  • Cost Efficiency: By utilizing all available links equally, ECMP maximizes the return on investment for multiple ISP or WAN links.

Use Cases for ECMP on FortiGate

ECMP is particularly useful in environments with multiple internet links or large-scale internal networks. Here are some common scenarios where ECMP is advantageous:

  1. Multi-WAN Load Balancing: Distribute traffic between multiple WAN connections, allowing efficient utilization of all ISP links.
  2. Redundancy for High Availability: In case of link failure, ECMP routes traffic over alternative paths, ensuring uptime.
  3. Enhanced Bandwidth for Data-Intensive Applications: Balance traffic for heavy workloads like video conferencing, VoIP, or large file transfers across multiple paths.
  4. Cost-Effective Scaling: In branch offices or remote sites, ECMP supports load balancing across multiple, lower-cost links instead of investing in a single high-bandwidth line.

ECMP Configuration on FortiGate

If multiple routes (static, OSPF or BGP) have the same attributes (distance, metric and priority), they are all active and FortiGate distributes traffic acros all of them. To be considered for ECMP, routes must have the same values for the following attributes:

  • Destination subnet
  • Distance
  • Metric
  • Priority

To check this values you need to open CLI and type get router info routing-table all

fgt # get router info routing-table all

Routing table for VRF=0
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default

S*      0.0.0.0/0 [5/0] via xxx.xxx.xxx.xxx, wan1
C       xxx.xxx.xxx.xxx/30 is directly connected, wan1
S       192.168.10.0/24 [4/0] is directly connected, to1
S       192.168.11.0/24 [10/0] is directly connected, to1
S       192.168.19.0/24 [10/0] via 192.168.20.112, internal

ECMP Methods

  • Source IP (default)
    • Sessions from the same source IP Address use the same route
  • Source-destination IP
    • Sessions with the same source and destination IP use the same route
  • Weighted
    • Sessions are distributed based on route, or interface weights
  • Usage (spillover)
    • One route is used until the volume treshold is reached, then the next route is used.

Configuring ECMP

The ECMP methos is set on the CLI (firmware 6.0.13)

config system settings

set v4-ecmp-mode [source-ip-based | weight-based | usage-based | source-dest-ip-based]

For weight-based ECMP, weight balues are configured per interface, or per route on the CLI:

ADVERTISEMENT
config system interface

edit interface <name>

set weight <0 to 255>

ECMP allows you to have multiple links for the same destination. On this way you have failover – redundancy and resilience.

ADVERTISEMENT
ADVERTISEMENT

For ECMP you need to have a firewall policy in the place to allow traffic to go through the interfaces.

More information you can find on the link.

About The Author

neo

See author's posts

Tags: fortigate
ADVERTISEMENT
Previous Post

Fortinet FortiGate: Routing Monitor and Route Attributes

Next Post

Fortinet FortiGate: Reverse Path Forwarding (RPF)

neo

neo

Next Post
Fortinet FortiGate: Reverse Path Forwarding (RPF)

Fortinet FortiGate: Reverse Path Forwarding (RPF)

Follow Us

  • Trending
  • Comments
  • Latest
MikroTik: Export Configuration in Text File

MikroTik: Export Configuration in Text File

Fortinet FortiGate: Static Route Configuration via GUI and CLI

Fortinet FortiGate: Static Route Configuration via GUI and CLI

Fortinet FortiGate Upgrade Path Tool

Fortinet FortiGate Upgrade Path Tool

Immich: Installation on Ubuntu 22.04

Immich: Installation on Ubuntu 22.04

NextCloud: Port Forwarding - Essential Ports for Smooth Functionality

NextCloud: Port Forwarding – Essential Ports for Smooth Functionality and Remote Access

Organizing and Managing Photos with Immich: Features I Use

Organizing and Managing Photos with Immich: Features I Use

Install Ubuntu 22.04 on Oracle VM Virtual Box

Install Ubuntu 22.04 on Oracle VM Virtual Box

Linux Directories: cd (Change Directory), pwd (Print Working Directory), mkdir (Make Directory)

Linux Directories: cd (Change Directory), pwd (Print Working Directory), mkdir (Make Directory)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

Install SoftEther VPN Server on Ubuntu 24.04

Install SoftEther VPN Server on Ubuntu 24.04

Recent News

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

Install SoftEther VPN Server on Ubuntu 24.04

Install SoftEther VPN Server on Ubuntu 24.04

Timeshift on Linux: How to Create and Restore System Snapshots

Timeshift on Linux: How to Create and Restore System Snapshots

ADVERTISEMENT

DefenceDev Tutorials

defencedev Logo

Whether you’re just starting or looking to expand your skills, I hope you find useful information and engaging discussions here. Let me take you through my journey and the goals behind this space!

Follow Us

Browse by Category

  • Blog
  • Cloud
    • Private
  • Linux Tutorials
    • Bash Scripting Tutorials
    • Commands
    • Networking
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Solutions
    • Docker
  • Video Tutorials
    • MikroTik Videos

Recent News

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

  • Site Map
  • Privacy Policy
  • Facebook Page
  • Disclaimer
  • Contact
  • About Me

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos

© 2025 defencedev.com - All rights reserved.