DGS-6604
m
match community
CLI Reference Guide
424
match community
Use the
match community
command to match a Border Gateway Protocol
(BGP) community. Use the
no match community
command to remove the entry
from the list and return to the default condition.
match community
COMMUNITY-LIST-NAME
[exact]
no match community
COMMUNITY-LIST-NAME
[exact]
Default
Not configured
Command Mode
Route-map configuration
Usage Guideline
A route is not advertised for outbound route maps or accepted for inbound route
maps if the route does not match at least one match clause relating to a route-
map command. In order to modify only a portion of the route data it is necessary
to configure a second route-map section that specifies an explicit match.
Matching based on the community list number is one of the types of match
commands applicable to BGP.
This route map set command is only for BGP.
When exact is specified, the communities of the route must be exactly the same
as the permitted communities specified in the community-list (by the command ip
community-list).
When exact is not specified, at least one community of the route must match one
of the permitted communities in the community-list, and that community does not
match any deny community.
Example
In the following example, routes that match the community list ALPHA-
COMMUNITY, which is 101:200, have their weights then set to 100. Any route
that has community 101:200 alone (exact match) will have its weight set to
100.The route policy is named myPolicy:
Verify the settings with the
show route-map
command
Syntax Description
COMMUNITY-LIST-
NAME
The name of the community list.
exact
(Optional) Requires an exact match. All of the communities specified must be
present and no other communities are allowed.
Switch(config)#ip community-list ALPHA-COMMUNITY permit 101:200
Switch(config)# route-map myPolicy permit 1
Switch(config-route-map)# match community ALPHA-COMMUNITY exact
Switch(config-route-map)# set weight 100
Summary of Contents for DGS-6600 Series
Page 1: ...0 9 3 ...