The peer advertise-ext-community command configures routers to advertise the extended community attributes to a peer or peer group.
The undo peer advertise-ext-community command cancels the existing configuration.
By default, the extended community attribute is not advertised to any peer or peer group.
peer { group-name | ipv4-address | ipv6-address } advertise-ext-community
undo peer { group-name | ipv4-address | ipv6-address } advertise-ext-community
| Parameter | Description | Value |
|---|---|---|
| group-name | Specifies the name of the peer group. | The name is a string of 1 to 47 characters without any space. It is case-sensitive. |
| ipv4-address | Specifies the IPv4 address of the peer. | - |
| ipv6-address | Specifies the IPv6 address of the peer. | - |
ipv4-address is valid only in the BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, and BGP-VPN instance IPv4 address family view.
ipv6-address is valid only in the BGP-IPv6 unicast address family view and BGP-VPN instance IPv6 address family view.
BGP view, BGP-IPv4 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view
Usage Scenario
The peer advertise-ext-community command is used to configure a device to advertise an extended community attribute to a specified peer or peer group. If a device advertises an extended community attribute to a specified peer group, all the members of the peer group will inherit the community attribute. This simplifies the application of routing policies and facilitates route maintenance and management.
Prerequisites
A specific extended community attribute has been defined in a routing policy.
Configuration Impact
After the peer advertise-ext-community command is run to configure a device to advertise an extended community attribute to its peer, routing updates sent by the peer carry the extended community attribute.