R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide

343
Use undo tnl-policy to remove the association.
Syntax
tnl-policy tunnel-policy-name
undo tnl-policy
Views
VPN instance view, IPv4 VPN view
Default command level
2: System level
Parameters
tunnel-policy-name: Name of the tunneling policy for the VPN instance, a string of 1 to 19 characters.
Usage guidelines
If a VPN instance is not associated with any tunneling policy or the associated tunneling policy is not
configured, the VPN instance selects tunnels according to the default tunneling policy. The default
tunneling policy selects only one tunnel in this order: LSP tunnel, GRE tunnel, CR-LSP tunnel.
A tunneling policy specified in VPN instance view is applicable to both the IPv4 VPN and the IPv6 VPN.
A tunneling policy specified in IPv4 VPN view is applicable to only the IPv4 VPN.
A tunneling policy specified in IPv4 VPN view takes precedence over that specified in VPN instance view.
If you specify a tunneling policy in both IPv4 VPN view and VPN instance view, the tunneling policy
specified in IPv4 VPN view is applied to the IPv4 VPN (or IPv6 VPN).
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 IPv4 VPN of VPN instance vpn2 with tunneling policy po1.
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] route-distinguisher 11:22
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] tnl-policy po1
[Sysname-vpn-ipv4-vpn2] quit
[Sysname-vpn-instance-vpn2] quit
Related commands
tunnel select-seq