mpls te protect-switch

Function

The mpls te protect-switch command configures the manual switching mode for a specified tunnel.

Format

mpls te protect-switch { force | lock | manual | clear }

Parameters

Parameter Description Value
force

Forcibly directs traffic to a protection tunnel.

-

lock

Locks traffic in the working tunnel. This means that traffic does not switch to a protection tunnel even if the working tunnel fails.

-

manual

Enables manual switching. This means that traffic switch to a protection tunnel.

-

clear

Cancel the manual switching request for a specified tunnel.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te execute

Usage Guidelines

Usage Scenario

If an LSP fault is detected, traffic switching is automatically triggered in a tunnel protection group. Alternatively, run the mpls te protect-switch command to trigger traffic switching.

MPLS OAM supports multiple traffic switching modes. These switching modes are prioritized. A newly configured switching mode takes effect only if its priority is higher than that of the existing switching mode.

Prerequisites

Protection tunnel must be configured for the tunnel.

Example

# Disable traffic switching on Tunnel 10.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol mpls te
[*HUAWEI-Tunnel10] mpls te protect-switch clear
# Manually switch traffic from the working tunnel named Tunnel 10 to a protection tunnel.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol mpls te
[*HUAWEI-Tunnel10] mpls te protect-switch manual
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >