< Home

protect-switch

Function

The protect-switch command switches active and inactive interfaces in 1:1 active mode.

Format

protect-switch

Parameters

None

Views

Eth-Trunk interface view, Layer-2 Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the interface which is first added to an Eth-Trunk interface in manual 1:1 master mode or inter-board interface standby mode is the master interface. Only the master interface can forward traffic. To enable a backup interface to forward data, run either of the following commands:
  • Run the port-master command to specify the backup interface as the master interface.

  • Run the protect-switch command to manually switch the active and inactive interfaces.

Prerequisites

The following conditions are met:
  • The Eth-Trunk interface is configured to work in manual 1:1 master/backup mode using the mode command.
  • The Eth-Trunk member interfaces are physically Up.

Configuration Impact

This switching between active and inactive interfaces will cause a short data interruption.

Example

# Switch the backup interface of Eth-Trunk 1 as the active interface.

<sysname> system-view
[sysname] interface eth-trunk 1
[sysname-Eth-Trunk1] portswitch
[sysname-Eth-Trunk1] mode manual backup
[sysname-Eth-Trunk1] protect-switch
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >