The vpn-target command adds VPN targets to the VPN target list of a VPN instance IPv6 address family.
The undo vpn-target command deletes the VPN targets of a VPN instance IPv6 address family.
By default, no VPN target is configured for a VPN instance IPv6 address family.
Parameter | Description | Value |
---|---|---|
vpn-target |
Specifies the VPN target to be added to the VPN target list of a VPN instance IPv6 address family. |
The format of a VPN target are as follows:
|
vrfRtType |
Adds a VPN target to the VPN target list of a VPN instance IPv6 address family. |
The value is an enumerated type:
|
all |
Delete all the VPN targets of a VPN instance IPv6 address family. |
- |
Usage Scenario
VPNv6 routes advertised from the local PE to peer PEs carry all the VPN targets in the export VPN target list of the local VPN instance IPv6 address family. A PE installs a received VPNv6 route to its VPN routing table only when the export VPN target of the route is identical with the import VPN target of the local VPN instance IPv6 address family on the PE.
Prerequisites
The ipv6-family command has been run in the VPN instance view to enable the IPv6 address family, and the route-distinguisher command has been run in the VPN instance view to set an RD for the VPN instance IPv6 address family.
Configuration Impact
The vpn-target command can be run repeatedly to add VPN targets to the VPN target list of a VPN instance IPv6 address family. A maximum of eight VPN targets can be added to a VPN target list. If you want to configure more VPN targets in the VPN instance IPv6 address family view, run the vpn-target command multiple times.
If the vpn-target command is not used, a PE does not import received VPNv6 routes into the local VPN instance IPv6 address family. If all the VPN targets of the IPv6 address family of a VPN instance are deleted using the undo vpn-target command, all routes learned by the IPv6 address family of the VPN instance from other VPN instances will be deleted.Follow-up Procedure
Run the ipv6-family vpn-instance command in the BGP view to enable the IPv6 address family of the BGP-VPN instance. This allows VPN targets to play their roles during route import; otherwise, VPNv6 routes cannot be imported into the routing table of the local VPN instance IPv6 address family.