![Huawei S6700 Series Configuration Manual Download Page 437](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517437.webp)
Applicable Environment
Community attributes are used to simplify routing policy application and facilitate network
maintenance. They allow a group of BGP switchs in different ASs to share the same routing
policies. Before advertising a route with the community attribute to peers, a BGP switch can
change the original community attribute of this route. Community attributes are route attributes,
which are transmitted between BGP peers, and the transmission is not restricted within an AS.
Pre-configuration Tasks
Before configuring BGP community attributes, complete the following task:
l
Configuring Basic BGP Functions
Data Preparation
To configure BGP Community attributes, you need the following data.
No.
Data
1
Community attribute value
2
Route-policy name, node sequence number, and matching condition
3
Names of inbound and outbound routing policies
7.11.2 Configuring Community Attribute-Related Routing Policies
A routing policy that references a community attribute needs to be configured before the
community attribute is advertised.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
route-policy
route-policy-name
{
permit
|
deny
}
node
node
A node is configured for a routing policy, and the view of the routing policy is displayed.
Step 3
(Optional) Configure filtering conditions (if-match clauses) for a routing policy. Community
attributes can be added only to the routes that pass the filtering, and the community attributes
of only the routes that pass the filtering can be modified.
For configuration details, see
(Optional) Configuring if-match Clauses
Step 4
Configure community or extended community attributes for BGP routes.
l
Run:
apply community
{ {
community-number
|
aa:nn
} &<1-32> |
internet
|
no-
advertise
|
no-export
|
no-export-subconfed
}
*
[
additive
]
Community attributes are configured for BGP routes.
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.
418