ip community-list
Syntax
Using a regular expression to specify the community:
[ no ] ip community-list communityLisName { permit | deny } communityExpression
Using some other method to specify the community:
ip community-list communityLisName { permit
| deny }
{ communityNumber | asCommunityNumber
| no-export | no-advertise | local-as |
internet } [ communityNumber
| asCommunityNumber | no-export | no-advertise |
local-as | internet
]*
no ip community-list communityLisName [
{ permit | deny }
[ { communityNumber |
asCommunityNumber | no-export | no-advertise | local-as | internet } ] [ communityNumber
| asCommunityNumber | no-export | no-advertise | local-as | internet ]* ]
Release Information
Command introduced before JunosE Release
7.1.0.
Description
Creates a community list for BGP and controls access
to it. The no version removes the community
list, including all list entries.
Options
- communityLisName—Name of a
community list; a string of up to 32 characters; identifies one or
more permit or deny groups of communities; used for standard community
lists
- permit—Permits access for a matching condition
- deny—Denies access for a matching condition
- communityExpression—Regular
expression that matches the community
- communityNumber—Community
number in the range 1–4294967295
- asCommunityNumber—Community
number in the format AA:NN, where AA is a number that identifies the autonomous
system and NN is a number that identifies the
community within the autonomous system.
- no-export—Specifies that BGP does not advertise
this route outside a BGP confederation boundary
- no-advertise—Specifies that BGP does not advertise
this route to any peer (internal or external)
- local-as—Specifies that BGP does not advertise this
route to external peers; sometimes known as the no-export-subconfed
community
- internet—Specifies the Internet community
- *—Indicates that one or more parameters can be repeated
multiple times in a list in the command line
Mode
Global Configuration
Published: 2012-06-28