OcNOS-SP : Layer 3 Guide : Fundamental Layer 3 Command Reference : Route-Map Commands : match community
match community
Use this command to specify the community to be matched.
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. This command allows the matching based on community lists.
The values set by the match community command overrides the global values. The route that does not match at least one match clause is ignored.
Note: This command is valid only for BGP.
Use the no parameter with this command to remove the community list entry.
Command Syntax
match community (<1-99>|<100-199>|WORD) (exact-match|)
no match community (<1-99>|<100-199>|WORD|) (exact-match|)
Parameters
<1-99>
Community-list number (standard).
<100-199>
Community-list number (expanded).
WORD
Community-list name.
exact-match
Do exact matching of communities.
Default
No default value is specified
Command Mode
Route-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#route-map myroute permit 3
(config-route-map)#match community mylist
Last modified date: 10/16/2023