FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
nageentaj
Staff
Staff
Description This article discusses how to do ECMP load balancing with SDWAN configuration.
Scope All Forti OS Models.
Solution

Using SD-WAN load balance of traffic can be done by navigating to SD-WAN -> SDWAN Rules ->Implicit Rule.

There are 5 ways to load balance the traffic as shown below.

 

nageentaj_0-1651155394260.png

 

The traffic will hit the implicit rule only when traffic doesn’t match any of the rules in the SD-WAN rules or if no rules are configured as shown below.

 

nageentaj_1-1651155394264.png


In a scenario where there are SDWAN rules that are configured based on certain strategies example Manual, Best quality, Lowest cost (SLA), Maximum Bandwidth (SLA), these strategies help in selecting how the traffic will choose the outgoing interface but it can’t do load balancing as it does not match the implicit rule.

 

In this case, create a static route for the same destination with the same administrative distance and priority as shown below, the traffic will match the longest prefix even though there is an SDWAN interface and load balancing will happen between the two interfaces PORT1 and PORT2.

 

nageentaj_2-1651155394269.png

 

The routing table will look as shown below.

Here if  '8.8.8.8' prefix length is 32 and one with default route ‘0’, so by default it will consider one with 32 prefix length.

Find the active routes for the specific destination.

 

nageentaj_3-1651155394274.png

nageentaj_3-1651155394274.png

 

References:

https://docs.fortinet.com/document/fortigate/7.2.0/administration-guide/216765/implicit-rule

https://docs.fortinet.com/document/fortigate/6.0.0/handbook/49719/configuring-sd-wan-load-balancing

https://community.fortinet.com/t5/FortiGate/Technical-Tip-ECMP-Load-balancing-algorithms-for-IPv4-an...

 

Contributors