tunnel-policy (system view)

Function

The tunnel-policy command creates a tunnel policy and displays the tunnel policy view.

The undo tunnel-policy command deletes the specified tunnel policy.

By default, no tunnel policy is specified in the system.

Format

tunnel-policy policy-name

undo tunnel-policy policy-name

Parameters

Parameter Description Value
policy-name Displays the name of a tunnel policy. 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

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, a VPN instance selects LSPs without performing load balancing based on the default tunnel policy. If you want to make a change, run the tunnel-policy command to create a tunnel policy.

The system can select tunnels for a VPN instance based on a tunnel policy only after the tunnel policy is applied to the VPN instance. The mode in which a tunnel policy is applied to a VPN instance varies according to the VPN type.

Precautions

If you change the tunnel policy in a VPN instance, VPN services may be interrupted due to a possibility of iteration failures.

Example

# Create a tunnel policy named policy1 and enter the tunnel policy view.

<sysname> system-view
[sysname] tunnel-policy policy1
[sysname-tunnel-policy-policy1] 
Related Topics
display tunnel-policy
tunnel select-seq

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