D-Link DGS-6600-48T Product Manual - Page 420
match community, exact ], show route-map
View all D-Link DGS-6600-48T manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 420 highlights
DGS-6604 m match community 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 ] Syntax Description COMMUNITY-LISTNAME 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. Default Command Mode Usage Guideline Example 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 routemap 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 ALPHACOMMUNITY, 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: 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 Verify the settings with the show route-map command CLI Reference Guide 410