340
[Sysname-bgp-ipv4] peer test advertise-community
# In BGP-VPN IPv4 unicast address family view, advertise the COMMUNITY attribute to peer group
test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv4 unicast
[Sysname-bgp-ipv4-vpn1] peer test advertise-community
# In BGP IPv6 unicast address family view, advertise the COMMUNITY attribute to peer group
test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv6 unicast
[Sysname-bgp-ipv6] peer test advertise-community
Related commands
•
apply community
•
if-match community
•
ip community-list
peer advertise-ext-community
Use
peer advertise-ext-community
to advertise the extended community attribute to a peer or peer
group.
Use
undo peer advertise-ext-community
to disable the extended community attribute advertisement to a
peer or peer group.
Syntax
In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view:
peer
{
group-name
|
ip-address
}
advertise-ext-community
undo peer
{
group-name
|
ip-address
}
advertise-ext-community
In BGP IPv6 unicast address family view:
peer
{
group-name
|
ip-address
|
ipv6-address
}
advertise-ext-community
undo peer
{
group-name
|
ip-address
|
ipv6-address
}
advertise-ext-community
Default
No extended community attribute is advertised to a peer or peer group.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast
address family view
Predefined user roles
network-admin
Parameters
group-name
: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address
: Specifies a peer by its IP address. The peer must have been created.