BGP and BGP4+ Commands

match community (Route Map)

Use this command to add a community match clause to a route map entry. Specify the community value or values to match by specifying a community list. To create the community list, enter Global Configuration mode and use the ip community-list (BGP and BGP4+) command.

A BGP update message matches the route map if its attributes include community values that match the community list.

Each entry of a route map can only match against one community list in one community match clause. If the route map entry already has a community match clause, entering this command replaces that match clause with the new clause.

Note that community lists and route map entries both specify an action of deny or permit. The action in the community list determines whether the route map checks update messages for a given community value. The route map action and its set clauses determine what the route map does with update messages that contain that community value.

Use the no variant of this command to remove the community match clause from a route map.

Syntax match community {<community-listname><1-99><100-199>}[exact-match]

no match community [<community-listname><1-99><100-199>exact- match]

Parameter

Description

<community-listname>

The community list name or number.

 

 

<1-99>

Community list number (standard range).

 

 

<100-199>

Community list number (expanded range).

 

 

exact-match

Exact matching of communities.

 

 

Mode Route-map Configuration

Usage This command is valid for BGP update messages only.

Communities are used to group and filter routes. They are designed to provide the ability to apply policies to large numbers of routes by using match and set commands. Community lists are used to identify and filter routes by their common attributes.

Example To add entry 3 to the route map called myroute, which will process update messages if they contain the community values that are included in mylist, use the commands:

awplus# configure terminal

awplus(config)# route-map myroute permit 3

awplus(config-route-map)# match community mylist

Related Commands route-map (Route Map) set community (Route Map)

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

C613-50032-01 REV D

AlliedWare PlusTM Operating System - Software Version 5.4.3-2.6

3.81

Page 179
Image 179
Allied Telesis VERSION 5.4.3-2.6, BGP4 manual Match community Route Map, Community-listname, Exact-match