
C613-50186-01 Rev B
Command Reference for AR2050V
1190
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
BGP
AND
BGP4+ C
OMMANDS
MATCH
COMMUNITY
match community
Overview
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
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]
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.
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.