tunnel policy binding-default down-switch enable

Function

The tunnel policy binding-default down-switch enable command configures a tunnel policy that selects a tunnel (in order of preference: LSP, TE, and GRE) if no destination address is bound to a tunnel.

The undo tunnel policy binding-default down-switch enable command restores the default configuration.

By default, a tunnel policy uses only LSPs for recursion when destination addresses are not bound to a tunnel.

Format

tunnel policy binding-default down-switch enable

undo tunnel policy binding-default down-switch enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tunnel-policy write

Usage Guidelines

Usage Scenario

A TE tunnel can be bound to different destination IP addresses using the tunnel binding command. If one of the destination addresses is not bound to a tunnel using the tunnel binding command, the tunnel management module searches for a tunnel based on the default policy. By default, a tunnel policy uses only LSP tunnels for recursion. If you want to use a non-default tunnel for recursion, run the tunnel policy binding-default down-switch enable command to configure a tunnel policy that selects a tunnel (in order of preference: LSP, TE, and GRE). LSP tunnels include LDP LSPs, BGP LSPs, and SR LSPs, which are in descending order of preference.

Example

# Configure a tunnel policy that selects a tunnel (in order of preference: LSP, TE, and GRE) if no destination address is bound to a tunnel.
<HUAWEI> system-view
[~HUAWEI] tunnel policy binding-default down-switch enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >