The peer advertise-community command configures a device to advertise a community attribute to its peer or peer group.The undo peer advertise-community command cancels the existing configuration.
By default, a device advertises no community attribute to its peer.
Usage Scenario
The peer advertise-community command is used to configure a device to advertise a community attribute to its peer or peer group. If a device advertises a community attribute to its peer group, all the members of the peer group will inherit the configuration. This simplifies the application of routing policies and facilitates route maintenance and management.
Precautions
Before running the peer advertise-community command to configure a device to advertise a BGP community attribute, you can use a route-policy to define this community attribute.