Created on 06-04-2010 07:30 AM Edited on 12-17-2021 02:55 AM
Description
This article provides solutions to announce only a static default route in BGP.
Solution
Solution 1
This solution applies only 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 :
1. Create a prefix list to ONLY match the default route on FortiGate.
config router prefix-list edit "only_default" config rule edit 1 set prefix 0.0.0.0 0.0.0.0 unset ge unset le next end next end |
2. Configure a route map linked to the prefix list
config router route-map edit "routemap1" config rule edit 1 set match-ip-address "only_default" next end next end |
3. Configure BGP to redistribute static routes using the route map
config router bgp config redistribute "static" set status enable set route-map "routemap1" end end |
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 2024 Fortinet, Inc. All Rights Reserved.