Before configuring the Large-Community attribute for routes, configure a route-policy in which the Large-Community attribute is applied.
Procedure
- Run system-view
The system view is displayed.
- Run route-policy route-policy-name { deny | permit } node node
A route-policy node is created, and the route-policy view is displayed.
- (Optional) Configure filtering conditions (if-match clauses) for the route-policy. Large-Community values can be added only to the BGP routes that pass the filtering, and the Large-Community values of only these routes can be modified.
For details, see (Optional) Configuring an if-match Clause.
- Run apply large-community { aa:bb:cc } &<1-16> { additive | overwrite | delete } or apply large-community-list large-community-list-name { additive | overwrite | delete }
Large-Community values are configured for BGP routes.
- Run commit
The configuration is committed.