The policy vpn-target command filters the VPN routes or label blocks received with VPN-Target attribute.
The undo policy vpn-target command cancels the VPN-Target filtering.
By default, the VPN-Target filtering is enabled.
Usage Scenario
In the networking of BGP/MPLS IP VPN, Kompella VLL, Kompella VPLS and BGP AD VPLS, VPN target attributes are used to filter received VPN routes or label blocks. If VPN target attributes are not configured, received VPN routes or label blocks are discarded.
The RRs or ASBRs, however, need to save all VPN routes or label blocks sent from PEs. Therefore, the undo policy vpn-target command can be configured on the RRs or ASBRs to disable the filtering of VPN routes or label blocks.
Precautions
Running the undo policy vpn-target makes all VPN routes or label blocks from PEs received. Therefore, this command is configured only on devices of particular roles (PRs or ASBRs)