The policy vpn-target command configures a device to implement VPN target-based filtering for received routes.
The undo policy vpn-target command cancels VPN target-based filtering.
By default, the VPN-Target filtering is enabled.
Usage Scenario
In the networking of BGP/MPLS IP VPN, Kompella VLL, and Kompella 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 (RRs or ASBRs)