Description | This article describes how to troubleshoot EBGP route selection when the Metric is not equal across routes received from multiple BGP neighbors for the same prefix. This article discusses deployment where the BGP neighbor is configured to accept additional paths for the same received prefix. |
Scope | FortiGate, EBGP. |
Solution |
Multiple Exit Discriminator MED or Metric is a routing attribute mainly used in BGP to influence received routes between adjacent autonomous systems.
Usually, when a BGP neighbor receives routes from different neighbors for the same subnet with different MED values, the receiving neighbor will choose a route to discard, and it is usually the highest received BGP path with the highest metric value.
In the case of allowing the additional-path feature on the BGP config, the behaviour might not be consistent, and the receiving BGP neighbor may not discard the neighbor with the highest metric; instead, it will randomly select a route from one or more neighbors to be discarded.
This issue can happen due to MED is not being used to compare routes. This can happen when the Metric is passed to the receiving BGP neighbor from a different autonomous system AS.
Solution:
The following commands resolve this problem by forcing FortiOS to use MED for route comparison:
config router bgp
Explanation of each command/feature:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.