The community attribute is used to simplify route-policy management.
The community attribute is transmitted between BGP4+ peers, and its transmission is not restricted within ASs. With the community attribute, a group of routes can share the same route-policy. Before sending a route with the community attribute to peers, BGP4+ can change the original community attribute carried by the route.
The system view is displayed.
The BGP view is displayed.
The IPv6 unicast address family view is displayed.
An export route-policy is applied to routes to be advertised to a specified peer or peer group.
When configuring a BGP4+ community, use a route-policy to define a specific community attribute. Then, apply the route-policy to the routes to be advertised.
For details about the route-policy configuration, see Routing Policy Configuration.
To configure the device to advertise a standard community attribute to a specified peer or peer group, run the peer { ipv4-address | ipv6-address | group-name } advertise-community command.
To configure the device to advertise an extended community attribute to a specified peer or peer group, run the peer { ipv4-address | ipv6-address | group-name } advertise-ext-community command.
The configuration is committed.