Usage Scenario
The Large-Community attribute is a private attribute of BGP and can be flexibly applied to route-policies. To modify or set values of the Large-Community attribute in BGP routes, run the apply large-community command.
Configuration Impact
If the apply large-community command is run in a route-policy, the values of the Large-Community attribute in the BGP routes filtered by the route-policy will be changed to the value in the route-policy.
Assume that the Large Community attribute in the original BGP routes is set to 10:3:20 and 10:3:30. For the BGP routes that meet the filtering conditions:
- If the apply large-community 20:4:30 overwrite command has been run, the values of the Large-Community attribute are changed to 20:4:30.
- If the apply large-community 10:3:20 delete command has been run, the values of the Large-Community attribute are changed to 10:3:30.
- If the apply large-community 20:4:30 additive command has been run, the value 20:4:30 is added to the Large-Community attribute list including 10:3:20 and 10:3:30 already.
- If the apply large-community none command has been run, all the values set for the Large-Community attribute are deleted.
Precautions
If the apply large-community command is run more than once, the latest configuration overrides the previous one.