Usage Scenario
The Large-Community attribute is a private attribute of BGP. Therefore, you can run the if-match large-community-filter command to filter BGP routes with a specified Large-Community attribute value. For the filtering rule to take effect, run the ip large-community-filter command to define a Large-Community filter first. For example:
- If the if-match large-community-filter a command is run but the large-community-filter a command is not run, the if-match large-community-filter command fails to be delivered.
- If the if-match large-community-filter a and ip large-community-filter basic a permit 1:1:1 commands are both run, only BGP routes with the Large-Community value of 1:1:1 are permitted.
Prerequisites
A Large-Community filter has been configured using the ip large-community-filter command.
Configuration Impact
The BGP routes that match a filtering rule based on the Large-Community attribute are permitted, and the BGP routes that do not match a filtering rule based on Large-Community attribute are denied.