< Home

Creating a Tunnel Policy

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).

Prerequisites

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.

Context

Perform the following steps on a PE configured with a VPN instance.

Procedure

  1. Access the system view.

    system-view

  2. Create a tunnel policy and access the tunnel policy 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.

  3. Set priority of the tunnels and the number of tunnels for load balancing.

    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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >