Configuring Community Lists - Cisco Nexus 7000 Series Configuration Manual

Nx-os unicast routing configuration
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Chapter 16
Configuring Route Policy Manager
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m .

Configuring Community Lists

You can use community lists to filter BGP routes based on the community attribute. The community
number consists of a 4-byte value in the aa:nn format. The first two bytes represent the autonomous
system number, and the last two bytes represent a user-defined network number.
When you configure multiple values in the same community list statement, all community values must
match to satisfy the community list filter. When you configure multiple values in separate community
list statements, the first list that matches a condition is processed.
Use community lists in a match statement to filter BGP routes based on the community attribute.
SUMMARY STEPS
1.
2.
3.
4.
DETAILED STEPS
Command
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
ip community-list standard list-name
{deny | permit} [ community-list ]
[internet] [local-AS] [no-advertise]
[no-export]
Example:
switch(config)# ip community-list
standard BGPCommunity permit
no-advertise 65536:20
ip community-list expanded list-name
{deny | permit} expression
Example:
switch(config)# ip community-list
expanded BGPComplex deny
50000:[0-9][0-9]_
OL-20002-02
config t
ip community-list standard list-name {deny | permit} [community-list ] [internet] [local-AS]
[no-advertise] [no-export]
or
ip community-list expanded list-name {deny | permit} expression
show ip community-list name
copy running-config startup-config
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
Configuring Route Policy Manager
Purpose
Enters configuration mode.
Creates a standard BGP community list. The list-name
can be any case-sensitive alphanumeric string up to 63
characters. The community-list can be one or more
communities in the aa:nn format.
Creates an expanded BGP community list using a
regular expression.
16-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents