Syntax
communityname{ bandwidthas:bandwidth; invert-match; members [community-ids]; }Hierarchy Level
[edit logical-routerslogical-router-namepolicy-options],[editpolicy-options]Release Information
Statement introduced before JUNOS Release 7.4.Description
Define a community or extended community for use in a routing policy match condition.
Options
name—Name that identifies the regular expression. The name can contain letters, numbers, and hyphens (-) and can be up to 255 characters. To include spaces in the name, enclose it in quotation marks (double quotes).
bandwidthas:bandwidth—Link bandwidth community attribute.asspecifies the autonomous system andbandwidthspecifies bandwidth in bytes per second.
invert-match—Invert the results of the community expression matching.
memberscommunity-ids—One or more community members. If you specify more than one member, you must enclose all members in brackets.The format for community identifiers is:
as-number:community-value
as-numberis the AS number and can be a value in the range 0 through 65,535.community-valueis the community identifier and can be a number in the range 0 through 65,535.You also can specify
community-idsfor communities as one of the following well-known community names, which are defined in RFC 1997, BGP Communities Attribute:
no-export—Routes containing this community name are not advertised outside a Border Gateway Protocol (BGP) confederation boundary.no-advertise—Routes containing this community name are not advertised to other BGP peers.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.You can explicitly exclude BGP community information with a static route using the
noneoption. Includenonewhen configuring an individual route in therouteportion of thestaticstatement to override acommunityoption specified in thedefaultsportion of the statement.The format for extended community identifiers is the following:
type:administrator:assigned-number
typeis the type of extended community and can be either atarget,origin, ordomain-idcommunity. Thetargetcommunity identifies the destination to which the route is going. Theorigincommunity identifies where the route originated. Thedomain-idcommunity identifies the Open Shortest Path First (OSPF) domain from which 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.Usage Guidelines
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.