14-28
Description
Use the
vpn-target
command to associate the current VPN instance with one or more VPN targets.
Use the
undo vpn-target
command to remove the association of the current VPN instance with VPN
targets.
VPN target has no default. You must configure it when creating a VPN instance.
Examples
# Associate the current VPN instance with VPN targets.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 100:1
[Sysname-vpn-instance-vpn1] vpn-target 3:3 export-extcommunity
EVT Assignment result:
VPN-Target assignment is successful
[Sysname-vpn-instance-vpn1] vpn-target 4:4 import-extcommunity
IVT Assignment result:
VPN-Target assignment is successful
[Sysname-vpn-instance-vpn1] vpn-target 5:5 both
IVT Assignment result:
VPN-Target assignment is successful
EVT Assignment result:
VPN-Target assignment is successful