Configure Community Lists

Configure community lists to specify permitted routes by using their BGP community. This list acts as a filter that matches communities or AS numbers.

Before you begin

  • You configure BGP on a VRF instance the same way you configure the GlobalRouter, except that you must use VRF Router Configuration mode and the prefix ip bgp. The VRF must have an RP Trigger of BGP.

    Note

    Note

    Route refresh is not currently supported on non-default VRFs.

Procedure

  1. Enter BGP Router Configuration mode:

    enable

    configure terminal

    router bgp

  2. Create a community list:

    ip community-list <1-1024> memberid <0-65535> <permit|deny> community-string WORD<0-256>

Example

Create a community list:

Switch(config)# ip community-list 1 memberid 4551 permit community-string internet

Variable Definitions

The following table defines parameters for the ip community-list command.

Variable

Value

<0-65535>

Specifies an integer value from 0–65535 that represents the member ID in the community list.

<1-1024>

Specifies an integer value from 1–1024 that represents the community list ID.

<permit|deny>

Configures the access mode, which permits or denies access for matching conditions.

WORD<0-256>

Specifies the community as an alphanumeric string value with a string length from 0–256 characters. Enter this value in one of the following formats:

  • (AS num:community-value)

  • (well-known community string)

    Well known communities include: internet, no-export, no-advertise, local-as (known as NO_EXPORT_SUBCONFED).