OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : ip community-list standard
ip community-list standard
Use the community-lists 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. It includes community values that are 32-bits long. There are two kinds of community-lists: expanded and standard. The standard community-list defines the community attributes in a specified format without regular expressions. The expanded community-list defines the community attributes with regular expressions.
Use this command to add a standard community-list entry. The standard community-list is compiled into binary format and is directly compared with the BGP communities attribute in the BGP updates. The comparison is faster than the expanded community-list. Any community value that does not match the standard community value is automatically treated as expanded.
Use the no parameter with this command to delete the standard community-list entry.
Command Syntax
ip community-list standard WORD (deny|permit)
ip community-list standard WORD (deny|permit) [AA:NN|internet|local-AS|no-advertise|no-export]
no ip community-list standard 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 standard CLIST permit 7675:80 7675:90 no-export
(config)#ip community-list 34 permit 5675:50 no-advertise
Last modified date: 10/16/2023