Using Communities in Route Maps

This section deals specifically with route maps that use communities. For general instructions on defining route maps, see Procedure 38 on page 22.

Route maps can use communities in one of the following ways:

  • In match conditions as community lists
  • In set actions as communities

To use communities in match conditions, you must create community lists in the Community Lists attribute before using the lists in the Match Info attribute.

Procedure 22: Configuring Match Info for a Route Map Using Communities

  1. Edit the IP > IP Routing Parameters > Community Lists attribute and configure the desired community lists, using a different community list number for each list. Close the Community Lists dialog box when done.

  2. Configure the IP > IP Routing Parameters > Route Map Configuration attribute as described in Configuring Route Maps. For match conditions that use communities, set the Match Info attributes as follows:

    • Match Property: Community
    • Match Condition: Contains (or Equals for an exact match)
    • Match Value: <a single community list number>

End of Procedure 22

When using a route map to change the communities of a matching route, use the following procedure to configure the Set Info attributes.

Procedure 23: Configuring a Router to Change a Route’s Communities

  1. Define a route map as follows. Configure the IP > IP Routing Parameters > Route Map Configuration attribute as described in Chapter 14 “IP” on page 1.

    Use the following values for the Set Info attribute:

    • Set Attribute: Community
    • Set Operation: Set As, Add To, or Subtract From
    • Set Value: <a single community number>

    To add multiple communities to a route, specify each community in a separate row. When using multiple rows in the Set Info table, make sure that you do not unintentionally overwrite some of the communities set in one row by using the Set As operation in a subsequent row.

  2. Apply the route map to the appropriate neighbors using the IP Routing Protocols > BGP Parameters > Neighbors attribute (see Procedure 21).

  3. Enable the neighbors from step 2 to receive community information by setting their IP Routing Protocols > BGP Parameters > Neighbors > Neighbor Properties > Address Family Parameters > Address Family Properties > Send-Community attributes to Standard or Both.

End of Procedure 23