Command Reference Guide

170ip community-list 3Com Router 5000 Family and Router 6000 Family
Command Reference
ip community-list
Purpose Use the ip community-list command to configure a BGP community list.
Use the undo ip community-list command to delete the configured BGP
community list.
Syntax ip community-list stand-comm-list-number { permit | deny } { aa:nn |
internet | no-export-subconfed | no-advertise | no-export }
ip community-list ext-comm-list-number { permit | deny }
as-regular-expression
undo ip community-list { stand-comm-list-number | ext-comm-list-number
}
Parameters stand-comm-list-number
Number of the standard community list ranging from 1
to 99.
ext-comm-list-number
Number of the extended community list ranging from
100 to 199.
permit
Permits those that match the conditions to access.
deny
Denies those that match the conditions to access.
aa:nn
Community number, where aa is the AS number and
nn is the community number.
internet
Advertises all routes.
no-export-subconfed
Indicates not to advertise matched routes outside the
AS.
no-advertise
Indicates not to advertise matched routes to any peer.
no-export
Indicates not to advertise routes outside the AS but to
other sub ASs.
as-regular-expression
Community attribute in the regular expression form.
Example Define a community attribute list and indicate not to advertise routes with the
community attribute beyond the AS.
[3Com ] ip community-list 6 permit no-export-subconfedpurpose_body
View This command can be used in the following views:
System view
Description The configured community list can be used in BGP policy.