The tnl-policy command associates a tunnel policy with a VPN instance IPv6 address family.
The undo tnl-policy command cancels the configured association.
By default, a VPN instance IPv6 address family selects a tunnel in the order of conventional LSPs, CR-LSPs, and Local_IfNet, and does not perform load balancing.
Usage Scenario
By default, a VPN instance selects a tunnel in the order of conventional LSPs, CR-LSPs, and Local_IfNet to forward data on the backbone network and cannot implement multi-path load balancing at the same time. To ensure transmission quality by using a TE tunnel to transmit VPN services or improve transmission efficiency by load balancing VPN services among tunnels, run the tunnel-policy command to configure a tunnel policy and run the tnl-policy command in the IPv6 address family view to reference the tunnel policy.
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
If the tunnel policy associated with a VPN instance enabled with the IPv6 address family cannot match an existing tunnel on the network, the VPN instance enabled with the IPv6 address family will have routes recurse to tunnels based on the default tunnel policy. If the recursion fails, services will be interrupted.
Follow-up Procedure
If the associated tunnel policy does not exist, run the tunnel-policy command to create the tunnel policy.
Precautions
The SRv6 TE Policy or SRv6 TE Policy Group of tunnel is not supported in a tunnel policy specified in the command.
<HUAWEI> system-view [~HUAWEI] tunnel-policy po1 [*HUAWEI-tunnel-policy-po1] tunnel select-seq lsp load-balance-number 2 [*HUAWEI-tunnel-policy-po1] quit [*HUAWEI] ip vpn-instance vpn2 [*HUAWEI-vpn-instance-vpn2] ipv6-family [*HUAWEI-vpn-instance-vpn2-af-ipv6] route-distinguisher 22:33 [*HUAWEI-vpn-instance-vpn2-af-ipv6] tnl-policy po1