572
aa:nn
&<1-32>: Specifies a community number. Both
aa
and
nn
are in the range of 0 to 65535. &<1-32>
indicates that the argument before it can be entered up to 32 times.
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 local confederation.
Examples
# Configure basic community list 1 to permit routes with the INTERNET community attribute.
<Sysname> system-view
[Sysname] ip community-list 1 permit internet
# Configure advanced community list 100 to permit routes with the COMMUNITY attribute starting with
10.
<Sysname> system-view
[Sysname] ip community-list 100 permit ^10
Related commands
•
apply comm-list delete
•
apply community
•
display ip community-list
•
if-match community
ip extcommunity-list
Use
ip extcommunity-list
to define an extended community list entry.
Use
undo ip extcommunity-list
to remove an extended community list.
Syntax
ip extcommunity-list
ext-comm-list-number
{
deny
|
permit
} {
rt
route-target
}&<1-32>
undo ip extcommunity-list
ext-comm-list-number
[ {
deny
|
permit
} [
rt
route-target
]&<1-32> ]
Default
No extended community list is defined.
Views
System view
Predefined user roles
network-admin
Parameters
ext-comm-list-number
: Specifies a number for the extended community list, in the range of 1 to 199.