R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
505
Syntax
ip community-list basic-comm-list-num { deny | permit } [ community-number-list ] [ internet |
no-advertise | no-export | no-export-subconfed ] *
undo ip community-list basic-comm-list-num [ deny | permit ] [ community-number-list ] [ internet |
no-advertise | no-export | no-export-subconfed ] *
ip community-list adv-comm-list-num { deny | permit } regular-expression
undo ip community-list adv-comm-list-num [ 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.
adv-comm-list-num: Advanced community list number in the range of 100 to 199.
regular-expression: Specifies a regular expression for the advanced community list, 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: Specifies a list of community numbers 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: Specifies the internet community attribute. Routes with this attribute can be advertised to all BGP
peers. By default, all routes have this attribute.
no-advertise: Specifies the no-advertise community attribute. Routes with this attribute cannot be
advertised to other BGP peers.
no-export: Specifies the no-export community attribute. Routes with this attribute cannot be advertised
out of the local AS, or the local confederation but can be advertised to other ASs in the confederation.
no-export-subconfed: Specifies the no-export-subconfed community attribute. Routes with this attribute
cannot be advertised out of the local AS, or to other sub ASs in the confederation.
Examples
# Configure basic community list 1 to permit routing information with the internet community attribute.
<Sysname> system-view
[Sysname] ip community-list 1 permit internet
# Configure 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