![Huawei S6700 Series Скачать руководство пользователя страница 406](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517406.webp)
Metacharacter
Description
*
An asterisk indicates that there are 0, 1, or any number of the
previous expression.
+
A plus sign indicates that there is at least 1 of the previous
expression.
|
Matches either expression it separates.
^
Specifies the beginning of a line.
$
Specifies the end of a line.
[xyz]
Matches any character in the brackets.
[^xyz]
Matches a single character that is not contained within the
brackets.
[a-z]
Matches any character within the specified range.
[^a-z]
Matches any character out of the specified range.
{n}
Repeats "n" times. "n" is a non-negative integer.
{n,}
Repeats at least "n" times. "n" is a non-negative integer.
{n,m}
Repeats "n" to "m" times. "m" and "n" are both non-negative
integers, and "n" is equal to or smaller than "m". Note that
there is no space between "n" and the comma, or between the
comma and "m".
For example, ^10 indicates that only the AS_Path attribute starting with 10 is matched.
A circumflex (^) indicates that the beginning of a character string is matched.
Multiple rules, permit or deny, can be specified in a filter. The relationship between
theses rules is "OR". This means that if a route meets one of the matching rules, the
route matches the AS_Path filter.
NOTE
For details on a regular expression, see the
S6700 Series Ethernet Switches Configuration
Guide - Basic Configurations
.
l
Configure a community filter.
A BGP community attribute is used to identify a group of routes with the same properties.
Routes can be classified by community attribute. This facilitates route management.
Some AS internal routes may not need to be advertised to any other AS, whereas AS external
routes need to be advertised to other ASs. These AS external routes have different prefixes
(as a result, an IP prefix list is inapplicable) and may come from different ASs (as a result,
an AS_Path filter is inapplicable). You can set a community attribute value for these AS
internal routes and another community attribute value for these AS external routes on an
ASBR to control and filter these routes.
Perform the following steps on a BGP switch:
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.
387