Command Reference Protocol-independent Configuration Commands
6.3 ip community-list
Use this command to define a standard or expanded community list and control access to it. Use the
no form of this command to remove the setting.
ip community-list { community-list-number | standard community-list-name } { permit | deny }
[ { community-list-number | internet | local-AS } ]
ip community-list { community-list-number | expanded community-list-name } { permit | deny }
[ regular-expression ]
no ip community-list { { standard | expanded } community-list-name | community-list-number }
Name of the community list.
Indicates standard community list numbered in 1 to 99.
Indicates expanded community list numbered in 100 to 199.
Permits access to the community list.
Denies access to the community list.
Community number in the form of AA:NN(AS number/2-byte
numerical) in the range of 1 to 255 characters. It may also be one
of the following value:
Internet: Indicates the Internet community. All paths belong to
this community.
no-export: Indicates that this path will not be advertised to any
EBGP peers.
no-advertise: Indicates that this path will not be advertised to any
BGP peers.
local-as: Indicates that this path will not be advertised to out of
the AS. When AS confederation is configured, this path will not
be advertised to other ASs or sub-ASs.
Global configuration mode.
Each community list contains up to 32 community values, including internet and local-AS.
Ruijie(config)# ip community-list standard 1 deny 100.20.200.20
Ruijie(config)# ip community-list standard 1 permit internet