Usage Scenario
Community attributes are BGP-specific attributes. Therefore, the if-match community-filter command applies mainly to BGP routes. This command must be used with the ip community-filter command. For example:
- If the if-match community-filter 1 command is configured but the ip community-filter 1 command is not configured, all the routes will be permitted.
- If the if-match community-filter 1 and ip community-filter 1 permit 1:1 commands are both configured, BGP routes with community attribute 1:1 will be permitted.
Prerequisites
A community filter has been configured using the ip community-filter command.
A tunnel selector has been configured using the tunnel-selector command.
Configuration Impact
BGP routes are filtered by community attribute. Those with the specified community attributes are permitted and those without the specified community attributes are denied.
Precautions
A maximum of 16 community filters can be specified in the if-match community-filter command.
The name of a community filter cannot be all numbers.