community
Syntax
community ([community-ids] | no-advertise | no-export | no-export-subconfed | none);Hierarchy Level
[edit routing-instancesrouting-instance-namerouting-optionsaggregate|generate|static) (defaults | route)],[edit routing-instancesrouting-instance-namerouting-options ribrouting-table-name(aggregate|generate|static) (defaults | route)],[edit routing-options (aggregate|generate|static) (defaults | route)],[edit routing-options ribrouting-table-name(aggregate|generate|static) (defaults | route)],[edit logical-routerslogical-router-namerouting-instancesrouting-instance-namerouting-options (aggregate|generate|static) (defaults | route)],[edit logical-routerslogical-router-namerouting-instancesrouting-instance-namerouting-options ribrouting-table-name(aggregate|generate|static) (defaults | route)],[edit logical-routerslogical-router-namerouting-options (aggregate|generate|static) (defaults | route)],[edit logical-routerslogical-router-namerouting-options ribrouting-table-name(aggregate|generate|static) (defaults | route)]Description
Associate BGP community information with a static, aggregate, or generated route.
Options
community-ids—One or more community identifiers. Thecommunity-idsformat varies according to the type of attribute that you use.The BGP community attribute format is
as-number:community-value:
as-number—AS number of the community member. It can be a value from 0 through 65,535.community-value—Identifier of the community member. It can be a number from 0 through 65,535.For more information about BGP community attributes, see the JUNOS Policy Framework Configuration Guide.
For specifying the BGP community attribute only, you also can specify
community-idsas one of the following well-known community names defined in RFC 1997:
no-advertise—Routes containing this community name are not advertised to other BGP peers.no-export—Routes containing this community name are not advertised outside a BGP confederation boundary.no-export-subconfed—Routes containing this community name are not advertised to external BGP peers, including peers in other members' ASs inside a BGP confederation.none—Explicitly exclude BGP community information with a static route. Include this option when configuring an individual route in therouteportion to override acommunityoption specified in thedefaultsportion.The BGP extended communities attribute format is
type:administrator:assigned-number:
typeis the type of extended community and can be atarget,origin,ordomain-idcommunity. Thetargetcommunity identifies the route destination. Theorigincommunity identifies where the route originated. Thedomain-idcommunity identifies the OSPF domain where the route originated.administratoris the administrator. It is either an AS number or an IPv4 address prefix, depending on the type of extended community.assigned-numberidentifies the local provider.For more information about the BGP extended communities attribute, see the JUNOS Policy Framework Configuration Guide.
Usage Guidelines
See Configuring Static Routes, Configuring Aggregate Routes, and Configuring Generated Routes.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.See Also