port-master

Function

The port-master command configures an interface as the master interface in an Eth-Trunk interface in manual 1:1 master/backup mode.

The undo port-master command deletes the configuration of the master interface in an Eth-Trunk interface in manual 1:1 master/backup mode.

By default, the member interface that is first added to the Eth-Trunk interface in manual 1:1 master/backup mode will automatically become the master one.

Format

port-master

undo port-master

Parameters

None

Views

100GE interface view, 10GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk member interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
trunk write

Usage Guidelines

Usage Scenario

Eth-Trunk is a technique that bundles Ethernet interfaces into a logical interface (called an Eth-Trunk interface) to increase bandwidth, balance traffic, and improve network reliability. If intermediate devices exist between Eth-Trunk interfaces at both ends of an Eth-Trunk link, configure the Eth-Trunk interfaces to work in manual 1:1 master/backup mode.

Only the master interface is in the active state and can forward data. To ensure a reliable communication, running the port-master command is recommended to specify a master interface.

Prerequisites

The Eth-Trunk interface must work in manual 1:1 master/backup mode.

Precautions

In normal situations, the master member interface in an Eth-Trunk interface in manual 1:1 master/backup mode is active and can forward data. The backup member interface is inactive and cannot forward data. To change the backup interface to the master interface, perform either of the following operations:

  • Run the undo port-master command in the master interface view to delete the master interface configuration, and run the port-master command in the backup interface view to specify the interface as the master interface. Specifying a new master interface causes a short data interruption.
  • 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. This switching does not cause any data interruption.

Example

# Add GE 0/1/1 to Eth-Trunk 1 in manual 1:1 master/backup mode and configure GE 0/1/1 as the master interface.
<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 1
[*HUAWEI-Eth-Trunk1] portswitch
[*HUAWEI-Eth-Trunk1] mode manual backup
[*HUAWEI-Eth-Trunk1] quit
[*HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] eth-trunk 1
[*HUAWEI-GigabitEthernet0/1/1] port-master
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >