tunnel-prefer segment-routing

Function

The tunnel-prefer segment-routing command enables SR-MPLS BE tunnels to take precedence over LDP tunnels.

The undo tunnel-prefer segment-routing command disables SR-MPLS BE tunnels from taking precedence over LDP tunnels.

By default, LDP tunnels take precedence over SR-MPLS BE tunnels.

Format

tunnel-prefer segment-routing

undo tunnel-prefer segment-routing

Parameters

None

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

In a tunnel recursion scenario, an LDP tunnel is preferentially selected to forward traffic by default. To enable a device to preferentially select an SR-MPLS BE tunnel, run the tunnel-prefer segment-routing command.

Example

# Enable SR-MPLS BE tunnels to take precedence over LDP tunnels.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment routing] tunnel-prefer segment-routing
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >