
C613-50186-01 Rev B
Command Reference for AR2050V
1175
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
BGP
AND
BGP4+ C
OMMANDS
IP
COMMUNITY
-
LIST
ip community-list
Overview
Use this command to add an entry to a standard or extended BGP community-list
filter.
Use the
no
variant of this command to delete a standard or extended community
list entry.
Syntax
ip community-list <
listname
> {deny|permit} .<
community
>
no ip community-list <
listname
> {deny|permit} .<
community
>
Mode
Global Configuration
Usage
A community-list can be used as a filter to BGP updates. Use this command to
define the community access list globally, then use neighbor configuration
commands to apply the list to a particular neighbor.
There are two kinds of community-lists: expanded and standard. A standard
community- list defines the community attributes explicitly and not via a regular
expression. An expanded community-list defines the communities attributes with
regular expressions.
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.
Example
awplus#
configure terminal
awplus(config)#
ip community-list mylist permit 7675:80 7675:90
Parameter
Description
<
listname
>
Specifies the community listname.
deny
Specifies the community to reject.
permit
Specifies the community to accept.
.<
community
>
{<AS:VAL>|local-AS|no-advertise|no-export}
<AS:VAL>
Specifies the valid value for the community number. This format
represents the 32 bit communities value, where AS is the high order
16 bits and VAL is the low order 16 bits in digit format.
local-AS
Specifies routes not to be advertised to external BGP peers.
no-advertise
Specifies routes not to be advertised to other BGP peers.
no-export
Specifies routes not to be advertised outside of Autonomous System
boundary.