OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : ip community-list WORD
ip community-list WORD
Use the community-list commands to specify BGP community attributes. The community attribute is used for implementing policy routing. It is an optional, transitive attribute and facilitates transfer of local policies through different autonomous systems. There are two kinds of community-lists: the expanded and standard. The standard community-list defines the community attributes in a specified format and not with regular expressions. The expanded community-list defines the community attributes with regular expressions.
Use the no parameter with this command to delete the community list entry.
Command Syntax
ip community-list WORD (deny|permit)
ip community-list WORD (deny|permit) [AA:NN|internet|local-AS|no-advertise|no-export]
no ip community-list WORD
no ip community-list WORD (deny|permit) [AA:NN|internet|local-AS|no-advertise|no-export]
Parameters
WORD
Community list name
deny
Reject the community
permit
Accept the community
AA:NN
Community number
internet
Advertise routes to the internet community
local-AS
Do not advertise routes to external BGP peers
no-advertise
Do not advertise routes to other BGP peers
no-export
Do not advertise routes outside of Autonomous System boundary
Default
By default, ip community list is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#ip community-list mylist permit 7675:80 7675:90
 
(config)#no ip community-list mylist permit 7675:80 7675:90
Last modified date: 08/28/2023