378
Parameters
tunnel-policy-name
: Specifies the name of the tunneling policy for the VPN instance, which is a string of 1
to 19 characters.
Examples
# Associate VPN instance
vpn1
with tunneling policy
po1
.
<Sysname> system-view
[Sysname] tunnel-policy po1
[Sysname-tunnel-policy-po1] tunnel select-seq lsp load-balance-number 1
[Sysname-tunnel-policy-po1] quit
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 22:33
[Sysname-vpn-instance-vpn1] tnl-policy po1
[Sysname-vpn-instance-vpn1] quit
# Associate the IPv6 VPN of VPN instance
vpn3
with tunneling policy
po1
.
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] route-distinguisher 11:33
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv6-vpn3] tnl-policy po1
vpn-target (VPN instance view/IPv6 VPN view)
Description
Use the
vpn-target
command to configure VPN targets for a VPN instance, an IPv4 VPN, or an IPv6 VPN.
Use the
undo vpn-target
command to remove the specified or all VPN targets of a VPN instance, an IPv4
VPN, or an IPv6 VPN.
By default, no VPN targets are configured and you must configure VPN targets when creating a VPN
instance, an IPv4 VPN, or an IPv6 VPN.
•
VPN targets configured in VPN instance view is applicable to both the IPv4 VPN and the IPv6 VPN.
•
VPN targets configured in IPv6 VPN view is applicable to only the IPv6 VPN.
•
VPN targets configured in IPv6 VPN view takes precedence over that configured in VPN instance
view. If you configure VPN targets in both IPv6 VPN view and VPN instance view, those configured
in IPv6 VPN view are applied to the IPv6 VPN.
Syntax
vpn-target
vpn-target
&<1-8> [
both
|
export-extcommunity
|
import-extcommunity
]
undo vpn-target
{
all
|
vpn-target
&<1-8> [
both
|
export-extcommunity
|
import-extcommunity
] }
View
VPN instance view, IPv6 VPN view
Default level
2: System level