protect-switch

Function

The protect-switch command manually switches the active and inactive interfaces in an Eth-Trunk interface in manual 1:1 master/backup mode.

Format

protect-switch

Parameters

None

Views

Eth-Trunk interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
trunk execute

Usage Guidelines

Usage Scenario

After an Eth-Trunk in manual 1:1 master/backup mode is working properly, you can run the port-master command to specify a new master interface. Specifying a new master interface causes a short data interruption. To prevent the data interruption, you can run the protect-switch command in the view of the Eth-Trunk interface in manual 1:1 master/backup mode to manually switch the active and inactive interfaces. Each time the protect-switch command is run, the active and inactive interfaces are switched once.

Prerequisites

An Eth-Trunk interface in manual 1:1 master/backup mode has been created.

Example

# Manually switch the active and inactive interfaces in Eth-Trunk 1 that work in manual 1:1 master/backup mode.
<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 1
[*HUAWEI-Eth-Trunk1] portswitch
[*HUAWEI-Eth-Trunk1] mode manual backup
[*HUAWEI-Eth-Trunk1] trunkport GigabitEthernet0/1/1
[*HUAWEI-Eth-Trunk1] trunkport GigabitEthernet0/1/2
[*HUAWEI-Eth-Trunk1] commit
[~HUAWEI-Eth-Trunk1] protect-switch
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >