Download Print this page

Huawei Quidway NetEngine80E Configuration Manual page 898

Universal service router, ip routing
Hide thumbs Also See for Quidway NetEngine80E:

Advertisement

HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
l
l
Table 8-8
Table 8-8 Metacharacters supported by BGP AS_Path regular expressions
Meta
chara
cter
.
*
+
|
^
$
Issue 02 (2014-09-30)
Metacharacter: defines matching rules.
General character: defines matching objects.
lists metacharacters supported by BGP AS_Path regular expressions.
Description
Matches AS_Paths with any
single character except "\n",
including spaces.
Matches AS_Paths with 0 or
more sequences of the
character before the asterisk
"*".
Matches AS_Paths with 1 or
more sequences of the
character before the plus "+".
Matches any AS_Path with
characters on either side of
the vertical bar "|".
Matches AS_Paths
beginning with the characters
that follow the caret "^".
Matches AS_Paths ending
with the characters before the
dollar sign "$".
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Example
.* matches any AS_Path or route.
NOTE
If you have configured a rule in deny mode for an AS_Path
filter, run the ip as-path-filter as-path-filter-name
permit .* command so that other routes will not be
discarded.
See the preceding example.
65+ matches AS_Paths that begin with 6 and include
one 5 or consecutive 5s.
l AS_Path examples that 65+ matches: 65, 655,
6559, 65259, and 65529
l AS_Path examples that 65+ does not match: 56,
556, 5669, 55269, 56259, and 56259
100|65002|65003 matches 100, 65002, or 65003.
^65 matches AS_Paths beginning with 65.
l AS_Path examples that ^65 matches: 65, 651,
6501, and 65001
l AS_Path examples that ^65 does not match: 165,
1650, 6650, and 60065
65$ matches AS_Paths ending with 65.
l AS_Path examples that 65$ matches: 65, 165,
1065, 10065, and 60065
l AS_Path examples that 65$ does not match: 651,
1650, 6650, 60650, and 65001
NOTE
^$ matches null strings of characters (null AS_Path) and
can be used to match the locally generated routes.
8 BGP Configuration
873

Hide quick links:

Advertisement

loading

This manual is also suitable for:

Quidway netengine40eNe40eNe80e