32-ECMP Lab
32-ECMP Lab
With FortiGate Firewall you can make multiple WAN Lines (Internet Lines) redundant and load
balance communication. Here, we will confirm the Load Balancing operation by ECMP (Equal
Cost Multiple Path) for two Internet Lines.
A default route is set for each Internet Line. You can check the routing table with the CLI
command get router info routing-table static.
Firewall Policy:
Set a policy to allow all communication from LAN to WAN1 and LAN to WAN2 respectively.
Let’s change Load Balancing (ECMP) which should be performed based on the pair of source IP
address and destination IP address. Settings are made using the CLI.
FW1 Change ECMP
config system settings
set v4-ecmp-mode source-dest-ip-based
end
Access multiple sites such as Google and Yahoo again from the terminal and check the Log &
Report>Forwarding Traffic. The source IP address is fixed, but the destination IP address is
different, so both the primary and secondary WAN lines are used.
Start continue ping from Internal PC1 to any external IP Address such as 8.8.8.8.
Let’s enable Primary WAN1 link and bring down and suspend WAN2 Link.
When WAN1 link goes down, navigate to system event logs as below and verify the logs
FortiGate GUI -> Log and Report >Events >System Events.
When one link is down verifying the Routing table through CLI it will show only one route.