display tunnel-policy

Function

The display tunnel-policy command displays tunnel policy configurations. If tunnel-policy-name is specified, information about the specified tunnel policy is displayed. If tunnel-policy-name is not specified, information about all tunnel policies is displayed.

Format

display tunnel-policy [ tunnel-policy-name ]

Parameters

Parameter Description Value
tunnel-policy-name

Specifies the name of a tunnel policy. tunnel-policy-name is specified in the tunnel-policy command.

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

Task Name and Operations

Task Name Operations
tunnel-policy read

Usage Guidelines

Usage Scenario

By default, a VPN instance selects tunnels based on the default tunnel policy, that is, preferentially selecting LSPs without performing load balancing. 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 only the bound tunnel and 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

The actual command output varies according to the device. The command output here is only an example.

# Display the configurations of all tunnel policies (An IPv6 tunnel policy has been configured).
<HUAWEI> display tunnel-policy
Total   tunnel policy num:              2   (IPv6:1)
Sel-Seq tunnel policy num:              2   (IPv6:1)
Binding tunnel policy num:              0   (IPv6:0)
Invalid tunnel policy num:              0   (IPv6:0)

Tunnel Policy Name                      Select-Seq                              Load balance No  Unmix
-------------------------------------------------------------------------------------------------------
tp1                                     LDP SRTE                                              3  Disable
tp1                                     SRV6TEPOLICY                                          1  Disable
# Display the configurations of all tunnel policies (No IPv6 tunnel policy is configured).
<HUAWEI> display tunnel-policy
Total   tunnel policy num:              2   
Sel-Seq tunnel policy num:              1   
Binding tunnel policy num:              0   
Invalid tunnel policy num:              1   

Tunnel Policy Name                      Select-Seq                              Load balance No  Unmix
-------------------------------------------------------------------------------------------------------
tp1                                     LDP SRTE                                              3  Disable

Invalid Tunnel Policy Name               Family
-----------------------------------------------------------------------------------------
tp1                                      IPv6
# Display the configurations of all tunnel policies.
<HUAWEI> display tunnel-policy
Total   tunnel policy num:              4   (IPv6:2)
Sel-Seq tunnel policy num:              2   (IPv6:1)
Binding tunnel policy num:              0   (IPv6:0)
Invalid tunnel policy num:              2   (IPv6:1)
Tunnel Policy Name                      Select-Seq                              Load balance No  Unmix
-------------------------------------------------------------------------------------------------------
tp3                                     SRV6TEPOLICY                                          3  Disable
tp4                                     SRTEPOLICY LDP                                        3   Enable
Invalid Tunnel Policy Name               Family
-----------------------------------------------------------------------------------------
tp3                                      IPv4            tp4                                      IPv6
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

Number of tunnel type prioritizing policies.

Binding tunnel policy num

Number of tunnel binding policies.

Invalid tunnel policy num

Number of invalid tunnel policies.

Tunnel Policy Name

Tunnel policy name.

Select-Seq

Priorities of tunnel types in descending order.

Load balance No

Number of tunnels participating in load balancing (by default, the number is 1).

Unmix

Whether to support unmix of different tunnel types.

Family

Address family type.

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