To configure the local router to send the BGP community attributes in Update messages to a specific neighbor, use this command in BGP VPNv4 Address Family Configuration mode.
Using this command under the address-family vpnv4 unicast mode enables the local BGP router to send extended communities attribute to its BGP peer across the backbone. The neighbor address must be the same IP address used in the neighbor remote-as command to create the peer.
| Default | The extended communities attribute is not sent. |
| Format | neighbor ip-address send-community [extended | both] |
| Mode |
|
| Parameter | Description |
|---|---|
| ip-address | The neighbor's IPv4 address. |
| [extended | both] |
One of the following:
|
Example: The following example enables sending of the extended communities attribute to external peer at 1.1.1.1.
(Config)# router bgp 1 (Config-router)# neighbor 1.1.1.1 remote-as 2 (Config-router)# address-family vpnv4 unicast (Config-router-af-vpnv4)# neighbor 1.1.1.1 sendcommunity extended (Config-router-af-vpnv4)# neighbor 1.1.1.1 activate