neighbor send-community

Enables sending the community attribute in updates to the specified BGP neighbor.

Syntax

neighbor { ip-address | ipv6-address | peer-group-name } send-community [ all | both | extended | large | standard ]
no neighbor { ip-address | ipv6-address | peer-group-name } send-community [ all | both | extended | large | standard ]

Command Default

The device does not send community attributes.

Parameters

ip-address
IPv4 address of the neighbor
ipv6-address
IPv6 address of the neighbor
peer-group-name
Peer group name configured by the neighbor peer-group-name command.
all
Sends all community attributes: extended, large, and standard. BGP address-family L2VPN EVPN configuration mode does not support this keyword.
both
Sends both standard and extended attributes.
extended
Sends extended attributes.
large
Sends BGP large community attributes. BGP address-family L2VPN EVPN configuration mode does not support this keyword.
standard
Sends standard attributes.

Modes

BGP address-family IPv4 unicast configuration mode

BGP address-family IPv6 unicast configuration mode

BGP address-family IPv4 unicast VRF configuration mode

BGP address-family IPv6 unicast VRF configuration mode

BGP address-family L2VPN EVPN configuration mode

BGP address-family VPNv4 unicast configuration mode

BGP address-family VPNv6 unicast configuration mode

Usage Guidelines

If the send-community attribute is enabled after a BGP session has been established, the neighbor session must be cleared for this change to take effect.

The no form of the command restores the defaults.

Examples

The following example sends standard community attributes to a neighbor.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# neighbor 10.11.12.13 send-community standard
%Warning: Please clear the neighbor session for the parameter change to take effect!

The following example sends extended community attributes to a neighbor for VRF instance "red".

device# configure terminal
ddevice(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast vrf red
device(config-bgp-ipv6u-vrf)# neighbor 2001:2018:8192::125 send-community extended
%Warning: Please clear the neighbor session for the parameter change to take effect!

The following example sends standard and extended community attributes to a neighbor in L2VPN EVPN configuration mode.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family l2vpn evpn
device(config-bgp-evpn)# neighbor 10.1.1.1 send-community both
%Warning: Please clear the neighbor session for the parameter change to take effect!