< Home

apply tunnel-policy (tunnel-selector view)

Function

The apply tunnel-policy command applies a tunnel policy to routes filtered by the if-match clause.

The undo apply tunnel-policy command cancels the setting.

By default, no tunnel policy is configured for filtered routes.

Format

apply tunnel-policy tunnel-policy-name

undo apply tunnel-policy

Parameters

Parameter Description Value
tunnel-policy-name Specifies the name of a tunnel policy to be applied to the routes that match the if-match clause. 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

Tunnel selector view

Default Level

2: Configuration level

Usage Guidelines

Prerequisite

The tunnel-selector command is run to create a tunnel selector; if-match clauses are configured as needed.

Follow-up Procedure

If the tunnel policy specified in the apply tunnel-policy command does not exist in the system, run the tunnel-policy command to create the tunnel policy.

Example

# Select policy1 for the VPN routes that are filtered by RD in the tunnel selector view.

<sysname> system-view
[sysname] tunnel-policy policy1
[sysname-tunnel-policy-policy1] tunnel select-seq lsp load-balance-number 1 
[sysname-tunnel-policy-policy1] quit
[sysname] tunnel-selector tps permit node 10
[sysname-tunnel-selector] if-match rd-filter 1
[sysname-tunnel-selector] apply tunnel-policy policy1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >