351
View
System view
Default level
2: System level
Parameters
basic-comm-list-num: Basic community list number, in the range of 1 to 99.
basic: Specifies a basic communist list name.
advanced: Specifies an advanced communist list name.
comm-list-name: Community list name, a string of 1 to 31 characters, which can contain letters, numbers,
and signs.
adv-comm-list-num: Advanced community list number, in the range of 100 to 199.
regular-expression: Regular expression of advanced community attribute, a string of 1 to 50 characters.
For more information about regular expressions, see Fundamentals Configuration Guide.
deny: Specifies the match mode for the community list as deny.
permit: Specifies the match mode for the community list as permit.
community-number-list: Community number list, which is in the community number or aa:nn format; a
community number is in the range of 1 to 4294967295; aa and nn are in the range of 0 to 65535. Up
to 16 community numbers can be entered.
internet: Routes with this attribute can be advertised to all BGP peers. By default, all routes have this
attribute.
no-advertise: Routes with this attribute cannot be advertised to other BGP peers.
no-export: Routes with this attribute cannot be advertised out of the local AS, or the confederation but
can be advertised to other ASs in the confederation.
no-export-subconfed: Routes with this attribute cannot be advertised out of the local AS, or to other sub
ASs in the confederation.
Description
Use ip community-list to define a community list entry.
Use undo ip community-list to remove a community list or entry.
No community list is defined by default.
Examples
# Define basic community list 1 to permit routing information with the INTERNET community attribute.
<Sysname> system-view
[Sysname] ip community-list 1 permit internet
# Define advanced community list 100 to permit routing information with the COMMUNITY attribute
starting with 10.
<Sysname> system-view
[Sysname] ip community-list 100 permit ^10