A tunnel policy can determine the sequence in which tunnels are selected or bind a TE tunnel to a specified destination IP address.
In the tunnel policy view, the tunnel type prioritizing policy and tunnel binding policy are mutually exclusive. Choose one of the following configurations as needed.
The system view is displayed.
A tunnel policy is created, and the tunnel policy view is displayed.
The sequence in which each type of tunnel is selected and the number of tunnels participating in load balancing are configured.
After this command is run, the system selects tunnels based on the specified sequence. If tunnels that have higher priorities are unreachable, the system will continue to select tunnels that have lower priorities based on the sequence. For example, if the tunnel select-seq cr-lsp lsp load-balance-number 3 command is run, the system can select MPLS TE tunnels (as preferred ones) or LSPs for VPN service transmission and use a maximum of three tunnels for load balancing. If the number of available MPLS TE tunnels is smaller than 3, LSPs will be qualified to join the MPLS TE tunnels in load balancing.
LSPs include LDP LSPs, SR-LSPs, and BGP LSPs. If lsp is specified, the default priority sequence in descending order is LDP LSP > BGP LSP > SR-LSP. If sr-lsp, ldp or bgp is specified, the priority sequence for LSPs can be specified.
CR-LSPs include RSVP-TE tunnels and SR-MPLS TE tunnels. If cr-lsp is specified in the tunnel select-seq command, the tunnel that goes Up earlier has a higher priority.
If you want a VPN to select RSVP-TE tunnels or SR-MPLS TE tunnels first, configure te or sr-te when running the tunnel select-seq command.
If three or more CR-LSPs are available on the network, the system randomly selects three of them for service transmission.
If less than three CR-LSPs are available on the network, the system selects only the available CR-LSPs for service transmission.
The configuration is committed.
The system view is displayed.
A tunnel policy is created, and the tunnel policy view is displayed.
A tunnel policy is configured to bind a TE tunnel to the specified destination address.
The configuration is committed.