You want to add a BGP community to routes so you can apply common routing policy to the routes.
BGP communities are a way to group routes so you can apply the same policy to them. To use them in a routing policy, first define the community members and an AS path string:
[edit policy-options] aviva@RouterF#
Then include the community in the routing policy:
[edit policy-options policy-statement
match-routefrom protocol bgp
set then community addaviva@RouterF#
set then accept
To have the policy take effect, apply it with an
import statement to an EBGP group:
[edit protocols bgp] aviva@RouterF#
BGP communities are a way to group routes so that the same routing policy can be applied to them. This recipe shows a simple application of BGP communities that adds the community
65500:1234 to all received BGP routes that have the AS number
65505 in their AS path.
Creating the routing policy is a two-step process. First, define the members in your community with the
set community statement. Each member has a community identifier, which looks like
AS-number portion of the identifier is the local AS number. The
community-value is a number ...