The apply extcommunity command configures VPN-Target extended community attributes for BGP routes.
The undo apply extcommunity command cancels the configuration.
By default, no BGP VPN-Target extended community attributes are configured.
Parameter | Description | Value |
---|---|---|
rt extCmntyValue |
Indicates the value of VPN-Target extended community. |
The value of VPN-Target extended community can be expressed in any of the following formats:
|
additive |
Indicates that existing community attributes can be added to routes. |
- |
Usage Scenario
The apply extcommunity command is applicable to the VPN. At present, there are two types of BGP extended community attributes.
Prerequisites
A route-policy has been configured using the route-policy command.
Configuration Impact
After a route matches a route-policy, the VPN-Target extended community attribute of the route is changed.
Precautions
If additive is not set in the apply extcommunity command, the original VPN-Target extended community attribute is replaced.
For the address families that support the peer advertise-ext-community and ext-community-change enable commands, run the two commands in the corresponding address family view and then run the apply extcommunity command in the route-policy view to make the configuration take effect.