![Huawei S6700 Series Скачать руководство пользователя страница 420](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517420.webp)
TIP
The
apply comm-filter delete
command deletes a specified community attribute from a
route. An instance of the
ip community-filter
command can specify only one community
attribute each time. To delete more than one community attribute, run the
ip community-
filter
command multiple times. If multiple community attributes are specified in one
community filter, none of them can be deleted. For more information, see the
S6700
Series Ethernet Switches Command Reference
.
–
To delete all community attributes from a BGP route, run the
apply community
none
command.
–
To set community attributes for a BGP route, run the
apply community
{ {
community-number
|
aa:nn
} &<1-32> |
internet
|
no-advertise
|
no-export
|
no-export-subconfed
}
*
[
additive
] command.
–
To set an extended community attribute (route-target) for a route, run the
apply
extcommunity
{
rt
{
as-number:nn
|
4as-number:nn
|
ipv4-address:nn
} }
&<1-16> [
additive
] command.
–
To set the local preference for a BGP route, run the
apply local-preference
preference
command.
–
To set the Origin attribute for a BGP route, run the
apply origin
{
igp
|
egp
as-
number
|
incomplete
} command.
–
To set a preferred value for a BGP route, run the
apply preferred-value
preferred-
value
command.
–
To set dampening parameters for an EBGP route, run the
apply dampening
half-
life-reach
reuse
suppress
ceiling
command.
The operations in Step 4 can be performed in any order. A node may have multiple
apply
clauses or no
apply
clause.
----End
7.6.3 Configuring to Controll the Acceptment of BGP Routing
Information
After an import policy is configured, only the routes that match the import policy can be received.
Procedure
l
Configure BGP to receive routes from all its peers or peer groups.
You can configure a BGP device to filter received routes. Perform the following steps on
a BGP switch:
1.
Run:
system-view
The system view is displayed.
2.
Run:
bgp
as-number
The BGP view is displayed.
3.
Run:
ipv4-family
unicast
The IPv4 unicast address family view is displayed.
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.
401