12-18
adv-comm-list-num
: Advanced community list number, in the range 100 to 199.
regular-expression
: Regular expression of advanced community attribute, a string of 1 to 50
characters.
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 1 to 4294967295;
aa
and
nn
are in the range 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 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 the local AS, or to
other sub ASs in the confederation.
Description
Use the
ip community-list
to define a community list entry.
Use the
undo ip community-list
command 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
ip extcommunity-list
Syntax
ip extcommunity-list
ext-comm-list-number
{
deny
|
permit
} {
rt
route-target
}&<1-16>
undo ip extcommunity-list
ext-comm-list-number
View
System view
Default Level
2: System level
Parameters
ext-comm-list-number
: Extended community list number, in the range 1 to 199.
deny
: Specifies the match mode for the extended community list as deny.