Match Community - D-Link DGS-6600-48T Cli Reference Manual

Modular layer 3 chassis ethernet managed switch
Hide thumbs Also See for DGS-6600-48T:
Table of Contents

Advertisement

DGS-6604
m

match community

match community COMMUNITY-LIST-NAME [ exact ]
no match community COMMUNITY-LIST-NAME [ exact ]
Syntax Description
COMMUNITY-LIST-
NAME
exact
Default
Command Mode
Usage Guideline
Example
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
CLI Reference Guide
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.
The name of the community list.
(Optional) Requires an exact match. All of the communities specified must be
present and no other communities are allowed.
Not configured
Route-map configuration
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 permited 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 permited communities in the community-list, and that community does not
match any deny community.
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
match community
410

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dgs-6604Dgs-6600 series

Table of Contents