| Description | This article describes a BGP route summarization technique. |
| Scope | FortiGate. |
| Solution |
This article considers the following connected networks:
The purpose is to advertise networks via a summary route.
In Border Gateway Protocol (BGP), network advertisements are typically derived from entries in the local Routing Information Base (RIB). By default, BGP only advertises prefixes that are present in the routing table. This ensures that only valid and reachable routes are propagated to BGP peers, maintaining route integrity across the network. However, in certain scenarios (such as route summarization, manual aggregation, or lab testing), it may be necessary for BGP to advertise prefixes that are not explicitly present in the RIB.
When the network-import-check option is disabled, BGP changes its default behavior:
To advertise the networks by a single summary route, a matching blackhole route can be added to the routing table.
config router static edit 2 set dst 10.160.0.0 255.240.0.0 set distance 254 set blackhole enable next end
The entry for 10.160.0.0/20 is now in the RIB.
config router prefix-list edit "blackhole_summary" config rule edit 1 set prefix 10.160.0.0 255.240.0.0 unset ge unset le next end next end
config router route-map edit "B_S" config rule edit 1 set match-ip-address "blackhole_summary" next end next end
config router bgp config redistribute "static" set status enable set route-map "B_S" end end
Result:
Related articles: Technical Tip: How to implement BGP route summary (aggregation) on a FortiGate |
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.