![Huawei S6700 Series Скачать руководство пользователя страница 407](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517407.webp)
1.
Run:
system-view
The system view is displayed.
2.
Run:
ip community-filter
A community filter is configured.
–
To configure a standard community filter, run the
ip community-filter
{
basic
comm-filter-name
{
permit
|
deny
} [
community-number
|
aa:nn
]
*
&<1-9> |
basic-comm-filter-num
{
permit
|
deny
} [
community-number
|
aa:nn
]
*
&<1-16> } [
internet
|
no-export-subconfed
|
no-advertise
|
no-export
]
*
command.
–
To configure an advanced community filter, run the
ip community-filter
{
advanced
comm-filter-name
|
adv-comm-filter-num
} {
permit
|
deny
}
regular-
expression
command.
l
Configure an extcommunity filter.
Similar to a BGP community filter, a BGP extcommunity filter is used to filter private
network routes.
Perform the following steps on a BGP switch:
1.
Run:
system-view
The system view is displayed.
2.
Perform either of the following operations as required to configure an extcommunity
filter.
–
To configure a basic extcommunity filter, run the
ip extcommunity-filter
{
basic-
extcomm-filter-num
|
basic
basic-extcomm-filter-name
} {
deny
|
permit
} {
rt
{
as-number
:
nn
|
ipv4-address
:
nn
} } &<1-16> command.
–
To configure an advanced extcommunity filter, run the
ip extcommunity-filter
{
adv-extcomm-filter-num
|
advanced
adv-extcomm-filter-name
} {
deny
|
permit
}
regular-expression
command.
Multiple entries can be defined in an extcommunity filter. The relationship between
the entries is "OR". This means that if a route matches one of the rules, the route
matches the filter.
l
Configure a route-policy.
A route-policy is used to match routes or route attributes, and to change route attributes
when specific conditions are met. As the preceding filters can be used as matching
conditions of a route-policy, the route-policy is powerful in functions and can be used
flexibly.
Perform the following steps on a BGP switch:
1.
Run:
system-view
The system view is displayed.
2.
Run:
route-policy
route-policy-name
{
permit
|
deny
}
node
node
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.
388