R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

299
Parameters
as-path-number: Specifies an AS path list by its number in the range of 1 to 256.
deny: Specifies the match mode for the AS path list as deny.
permit: Specifies the match mode for the AS path list as permit.
regular-expression: Specifies the AS-PATH regular expression, a string of 1 to 50 characters.
BGP routing updates contain the AS path attribute field that identifies the autonomous systems through
which the routing information has passed. An AS-PATH regular expression, for example, ^200. *100$,
matches the AS path attribute that starts with AS 200 and ends with AS 100. For the meanings of special
characters used in regular expressions, see Fundamentals Configuration Guide.
Examples
# Create AS path list 1, permitting routing information whose AS_PATH attribute starts with 10.
<Sysname> system-view
[Sysname] ip as-path 1 permit ^10
ip community-list
Use ip community-list to configure a community list entry.
Use undo ip community-list to remove a community list or entry.
Syntax
ip community-list { basic-comm-list-num | basic comm-list-name } { deny | permit }
[ community-number-list ] [ internet | no-advertise | no-export | no-export-subconfed ] *
undo ip community-list { basic-comm-list-num | basic comm-list-name } [ deny | permit ]
[ community-number-list ] [ internet | no-advertise | no-export | no-export-subconfed ] *
ip community-list { adv-comm-list-num | advanced comm-list-name } { deny | permit } regular-expression
undo ip community-list { adv-comm-list-num | advanced comm-list-name } [ deny | permit ]
[ regular-expression ]
Default
No community list is configured.
Views
System view
Default command level
2: System level
Parameters
basic-comm-list-num: Specifies a number for the basic community list, in the range of 1 to 99.
basic: Specifies a name for the basic communist list.
advanced: Specifies a name for the advanced communist list.
comm-list-name: Specifies a community list name, a string of 1 to 31 characters, which can contain letters,
numbers, and signs.
adv-comm-list-num: Specifies an advanced community list number in the range of 100 to 199.