The policy includes tunnel selection and the number of tunnels for load balancing. A tunnel policy takes effect only in a single autonomous system (AS).
Before configuring a tunnel policy, complete the following tasks:
Connect interfaces, and set physical parameters for the interfaces to ensure that the physical status of the interfaces is Up.
Configure parameters of the data link layer protocol and IP addresses for the interfaces to ensure that the status of the data link layer protocol on the interfaces is Up.
Create a tunnel (LSP) for a VPN instance.
Configure the VPN instance on a PE.
system-view
tunnel-policy policy-name
A tunnel policy contains only a single tunnel selection mode. If more tunnel selection modes are required, create multiple tunnel policies.
A VPN instance can only use a single tunnel policy. Multiple VPN instances can use the same VPN tunnel policy.
tunnel select-seq lsp load-balance-number load-balance-number
If no tunnel policies are configured, an LSP is used as a VPN tunnel, and no load balancing is carried out.