Created on
06-04-2010
07:30 AM
Edited on
08-22-2024
11:15 PM
By
Jean-Philippe_P
Description
This article describes the available methods for advertising a default route using BGP.
Scope
FortiGate, BGP.
Solution
Solution 1.
This solution applies if the only static route present in the FortiGate routing table is the default route. Otherwise, it will advertise ALL static routes.
In this situation, configure BGP to redistribute all static routes without restriction :
config router bgp
config redistribute static
set status enable
end
end
Solution 2.
This solution applies when there are various static routes in the FortiGate routing table, but only the default route must be announced. In this scenario, a route-map can be used to filter out all routes (other than the default route) pulled in via static route redistribution:
Once this is configured, run the command get router info bgp network to confirm that a default route is now being injected into the BGP RIB.
Solution 3.
Instead of performing static route redistribution, it is possible to announce default routes on a per-BGP neighbor basis by enabling capability-default-originate:
config router bgp
config[ neighbor | neighbor-group ]
edit <neighbor name>
set capability-default-originate enable
end
Then check that a default route is being advertised to the specified peer/set of peers using the command get router info bgp neighbors <neighbor address> advertised-routes.
Related Articles:
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.