Created on
09-13-2023
02:20 PM
Edited on
10-17-2024
09:45 PM
By
Jean-Philippe_P
| Description | This article describes that the Border Gateway Protocol (BGP) uses community attributes as a powerful tool for route tagging and policy enforcement. Community lists in FortiGate act as filters, which enable BGP routes to be controlled based on specific community strings. |
| Scope | Fortigate v7.0. |
| Solution |
The Border Gateway Protocol (BGP) uses community attributes as a powerful tool for route tagging and policy enforcement. Community lists in FortiGate act as filters, which enable BGP routes to be controlled based on specific community strings.
BGP communities are optional transitive attributes, typically represented in the AS: Value format:
Types of Community Lists:
Defining a community list:
config router community-list
In GUI:
Actions:
Community lists gain real value when applied within route maps, which dictate actions based on matches:
config router route-map
Here, <string> refers to the community list's name. Based on matches, further actions like modifying attributes, filtering, or setting preferences can be implemented.
Best Practices:
Use Descriptive Names: Community list names should be descriptive, aiding in quick troubleshooting and understanding. Safe Testing: Always test configurations in controlled environments before production deployment. Documentation: Keep an updated document of all community lists, their purposes, and associated route-map actions.
Community lists in FortiGate provide precise control over BGP route propagation, aggregation, and policy implementations. By understanding and configuring them aptly, network administrators can ensure optimal route handling in their BGP environments.
For redundant ADVPN deployments, communities are commonly used in conjunction with route-tags for granular outgoing path selection. A FortiOS 'route-tag' is different from the BGP 'community attribute', but they have a one-to-one relationship in many network designs, and the terms are sometimes used interchangeably.
In such designs, a route-map-in is used to translate a BGP community into a route-tag usable by SD-WAN. For an example, see 'How to use BGP and SD-WAN for advertising routes and path selection in FortiGate' and 'Admin Guide: Using BGP tags with SD-WAN rules'. |
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.