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.
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. |
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:The actual command output varies according to the device. The command output here is only an example.
<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
<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
<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
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. |