![Huawei S6700 Series Configuration Manual Download Page 438](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517438.webp)
NOTE
A maximum of 32 community attributes can be configured in the
apply community
command.
l
Run:
apply extcommunity
{
rt
{
as-number:nn
|
ipv4-address:nn
} } &<1-16>
[
additive
]
An extended community attribute (Route-Target) is configured for BGP routes.
----End
7.11.3 Configuring a BGP Device to Send Community Attributes to
Its Peer
A community attribute takes effect only after the community attribute and the routing policy
referencing the community attribute are advertised.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
bgp
as-number
The BGP view is displayed.
Step 3
Run:
ipv4-family
unicast
The IPv4 unicast address family view is displayed.
Step 4
Run:
peer
{
ipv4-address
|
group-name
}
route-policy
route-policy-name
export
An export routing policy is configured.
NOTE
When configuring a BGP community, use a routing policy to define the community attribute, and apply
the routing policy to the routes to be advertised.
For details on routing policy configurations, see the chapter "Routing Policy Configuration."
Step 5
Run one of the following commands as needed to configure a BGP device to advertise
community attributes to its peer or peer group.
l
To configure the BGP device to send a standard community attribute to its peer or peer group,
run:
peer
{
ipv4-address
|
group-name
}
advertise-community
By default, a device advertises no community attribute to its peer or peer group.
l
To configure the BGP device to send an extended community attribute to its peer or peer
group, run:
peer
{
ipv4-address
|
group-name
}
advertise-ext-community
By default, a device advertises no extended community attribute to its peer or peer group.
----End
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
7 BGP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
419