3com MSR 20-20 참조 매뉴얼
1203
View
System view
Parameters
as-path-number: AS path ACL number, in the range of 1 to 256.
deny: Specifies the matching mode for the AS path ACL as deny.
permit: Specifies the matching mode for the AS path ACL as permit.
regular-expression: Regular expression of AS path, a string of 1 to 50 characters.
BGP routing information contains the AS path attribute field that identifies the
autonomous systems through which routing information has passed. Used to
compare with the AS path attribute, a regular expression is a formula comprised of
characters, for example, ^200. *100$, which matches AS path attribute fields that
start with AS200 and end with AS100.
autonomous systems through which routing information has passed. Used to
compare with the AS path attribute, a regular expression is a formula comprised of
characters, for example, ^200. *100$, which matches AS path attribute fields that
start with AS200 and end with AS100.
The meanings of special characters used in regular expressions are shown below:
Description
Use the ip as-path command to create an AS path ACL.
Use the undo ip as-path command to remove an AS path ACL.
No AS path ACL is created by default.
Examples
# Create an AS path ACL numbered 1, permitting routing information whose
AS_PATH starts with 10.
AS_PATH starts with 10.
<Sysname> system-view
[Sysname] ip as-path 1 permit ^10
ip community-list
Syntax
ip community-list basic-comm-list-num { deny | permit } [ community-number-list ]
[ internet | no-advertise | no-export | no-export-subconfed ] *
[ internet | no-advertise | no-export | no-export-subconfed ] *
undo ip community-list basic-comm-list-num [ community-number-list ] [ internet |
no-advertise | no-export | no-export-subconfed ] *
no-advertise | no-export | no-export-subconfed ] *
Character Meaning
.
Matches any single character, including blank space.
*
Matches 0 or more patterns.
+
Matches 1 or more patterns.
^
Matches the beginning of an input string.
$
Matches the end of an input string.
_
Matches a comma, left brace, right brace, left parenthesis, right
parenthesis, the beginning of an input string, the end of an input
string, or a space.
parenthesis, the beginning of an input string, the end of an input
string, or a space.
[ range ]
Means the range of single-character patterns.
-
Separates the ending points of a range.