The apply extcommunity redirect vpn-target command applies a redirection VPN-Target extended community attribute to routes matching specified filtering rules.
The undo apply extcommunity redirect vpn-target command restores the default configuration.
By default, no redirection VPN-Target extended community attribute is applied to routes matching specified filtering rules.
Parameter | Description | Value |
---|---|---|
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:
|
vpn-target |
Indicates the VPN-Target extended community. |
- |
Usage Scenario
To apply a redirection extended community attribute to BGP FlowSpec routes matching specified filtering rules, run the apply extcommunity redirect command. To enable BGP FlowSpec routes to redirect traffic to a VPN instance with RT as-number:nn, specify the vpn-target as-number:nn number to add a VPN target extended community attribute to these routes. Upon receipt of the traffic, the VPN instance will forward the traffic based on its own forwarding table.
Prerequisites
A route-policy has been configured.
Configuration Impact
If a route matches the filtering rules of a specified route-policy, the redirection extended community attribute will be applied to the route.