display tunnel-policy

Function

The display tunnel-policy command displays the configurations of tunnel policies.

Format

display tunnel-policy [ tunnel-policy-name ]

Parameters

Parameter Description Value
tunnel-policy-name Specifies the name of tunnel policy. If tunnel-policy-name is specified, information about the specified tunnel policy is displayed. The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

By default, a VPN instance selects LSPs without performing load balancing based on the default tunnel policy. If you do not want to use the default tunnel policy, run the tunnel-policy command to create a new one. After configuring a tunnel policy, you can run the display tunnel-policy command to confirm the configuration. Before applying a tunnel policy, you can run the display tunnel-policy command to view information about the specified tunnel policy.

If you already know the name of a tunnel policy, you can set the tunnel-policy-name parameter in the display tunnel-policy command to check information about the tunnel policy. If you do not set the tunnel-policy-name parameter, information about all tunnel policies is displayed.

The display tunnel-policy command displays the numbers of different types of tunnel policies. Tunnel policies are classified into the following types:
  • Tunnel type prioritizing policy: It specifies the sequence in which different types of tunnels are selected and the number of tunnels taking part in load balancing. The number of this type of tunnel policy is displayed in the Sel-Seq tunnel policy num field.

  • Tunnel binding policy: It binds a tunnel to a destination address so that the VPN traffic bound for the destination address enters the bound tunnel only QoS can be guaranteed for the VPN traffic. The number of this type of tunnel policy is displayed in the Binding tunnel policy num field.

Example

# View information about all the tunnel policies.

<sysname> display tunnel-policy
Total   tunnel policy num:              2
Sel-Seq tunnel policy num:              1
Binding tunnel policy num:              1
Invalid tunnel policy num:              0
Tunnel Policy Name  Select-Seq                        Load balance No
---------------------------------------------------------------------
po2                  LSP                              1

# Display information about the tunnel policy.

<sysname> display tunnel-policy p1
Tunnel Policy Name                      Select-Seq                        Load balance No                                           
-----------------------------------------------------------------------------------------                                           
po2                                     LSP                               1              
Table 1 Description of the display tunnel-policy command output

Item

Description

Total tunnel policy num

Total number of tunnel policies

Sel-Seq tunnel policy num

Total number of tunnel policies in select-sequence mode

Binding tunnel policy num

Total number of tunnel policies in tunnel binding mode

Invalid tunnel policy num

Total number of invalid tunnel policies

Tunnel Policy Name

Name of tunnel policies

Select-Seq

Priorities of tunnel types in descending order

Load balance No

Number of tunnels for load balancing (The default value is 1.)

Related Topics
tunnel-policy (system view)

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.