Specifying Community Information
By default, no Border Gateway Protocol (BGP) community information is associated with static routes. To associate community information with IPv4 routes, include the
communitystatement:static (defaults | route) {community [community-ids];}To associate community information with IPv6 routes, include the
communitystatement:rib inet6.0 static (defaults | route) {community [community-ids];}For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.
community-idsis one or more community identifiers for either communities or extended communities.The format for community identifiers is:
as-number:community-value
as-numberis the autonomous system (AS) number and can be a value in the range from 1 through 65,534.community-valueis the community identifier and can be a number in the range from 0 through 65,535.You also can specify
community-idsas one of the following well-known community names, which are defined in RFC 1997:
no-export—Routes containing this community name are not advertised outside a 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 also
explicitly exclude BGP community information with a static route using thenoneoption. 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:
type:administrator:assigned-number
typeis the type of extended community and can be atarget,origin, ordomain-idcommunity. Thetargetcommunity identifies the destination to which the route is going. Theorigincommunity identifies where the route originated. Thedomain-idcommunity identifies the OSPF domain where the route originated.
administratoris the administrator. It is either an autonomous system (AS) number or an IPv4 address prefix, depending on the type of extended community.