Created on
05-17-2023
04:50 AM
Edited on
09-12-2025
04:02 AM
By
Jean-Philippe_P
Description |
This article describes how to avoid issues with an IBGP route being preferred over an EBGP route. |
Scope | FortiGate. |
Solution |
If the same route is learned through EBGP and IBGP, the EBGP route is installed in the routing table due to its lower administrative distance (preference) value: Technical Tip: FortiGate IP route selection, and how to change the administrative distance (preferen.... This article explains a scenario where the IBGP route becomes active even though the same route is learned through EBGP.
Consider the following topology:
The FW1 route table shows that an IBGP route through 10.10.20.3 is active:
get router info routing-table all
Use 'get router info bgp network' to confirm the route is received from both peers:
get router info bgp network
As shown in the above output, there is a local-preference value of 100 associated with the IBGP route, even though there is no specific configuration on FW2 to add this.
show router bgp config router bgp set as 65001 set router-id 10.10.20.3 config neighbor edit "10.10.20.1" set next-hop-self enable set remote-as 65001 next end config network6 edit 1 set prefix6 ::/128 next end config redistribute "static" set status enable end
As per the BGP RFC, all IBGP peers must include the local_preference value in the update messages to their internal BGP neighbors. This should not be advertised to external BGP neighbors. The default FortiGate firewall configuration includes a local-preference value of 100, which means FW2 will add the local-preference value 100 to the advertised route.
When FW1 processes the routes from the FW2 and ISP neighbors, the route through FW1 is preferred due to a higher local_preference value, even though it is learned through IBGP (Technical Tip: BGP route selection process). Apply any one of the solutions below to ensure the EBGP route is preferred over IBGP:
|
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.