The mpls te protect-switch command configures the manual switching mode for a specified tunnel.
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. |
- |
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.
<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
<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