The community and extended community attributes are used to simplify routing policy management.
The community attribute is transmitted between MBGP peers, and its transmission is not restricted within ASs. With the community attribute, a group of routes can share the same routing policy. Before sending a route with the community attribute to peers, MBGP can change the original community attribute carried by the route.
Perform the following steps on the router that is configured as an MBGP peer:
The system view is displayed.
The BGP view is displayed.
The BGP-IPv4 multicast address family view is displayed.
To advertise the community attribute to an MBGP peer or peer group, run:
peer { group-name | peer-address } advertise-community
group-name: specifies the name of an MBGP peer group.
peer-address: specifies the IP address of a remote MBGP peer.
To advertise the extended community attribute to an MBGP peer or peer group, run:
peer { group-name | peer-address } advertise-ext-community
group-name: specifies the name of an MBGP peer group.
peer-address: specifies the IP address of a remote MBGP peer.
The configuration is committed.