Created on
05-29-2022
09:26 PM
Edited on
03-09-2025
10:53 PM
By
Anthony_E
Description | This article describes the behavior of FortiGate when a route is known by two different protocols. |
Scope | FortiGate. |
Solution |
When a route is known by different protocol routes (dynamic, static), only one protocol's route will be installed in the routing table even if Equal Cost Multi-Path (ECMP) is enabled.
If a route is learned from two protocols with the same distance and metric, the route that will be installed is the latest one updated in the kernel.
In the example below, a static route to 2.2.2.2/32 was configured with an Administrative Distance of 200, the same as the iBGP distance of 200. Only the static route was installed in the routing table.
universe-esx55 # get router info routing-table all Routing table for VRF=0
Routing table for VRF=0
edit 2 set dst 2.2.2.2 255.255.255.255 next end
By default, ECMP is enabled. If the route 2.2.2.2/32 is learned by two different static route entries with the same distance, then both will be installed in the routing table. A maximum of 255 paths can be installed for a particular destination.
universe-esx55 # get router info routing-table all Routing table for VRF=0
To disable ECMP and enforce a maximum of one route per prefix, set ecmp-max-paths to 1.
config system setting set ecmp-max-paths 1 end
It is recommended to leave ECMP enabled in most environments. See Administration Guide: Equal Cost Muti Path (v7.6.2). |