< Home

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 or in inter-board interface standby 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 or in inter-board interface standby mode.

By default, the interface which is first added to an Eth-Trunk interface is the master interface.

Format

port-master

undo port-master

Parameters

None

Views

Ethernet interface view, Layer-2 Ethernet interface view, 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/backup mode is the master interface. Only the master interface can forward traffic. To ensure reliable service transmission, run the port-master command to specify an interface as a master interface.

Prerequisites

The Eth-Trunk interface to which member interfaces are added has been configured to work in manual 1:1 master/backup mode using the mode command.

Precautions

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 command is executed, the active and inactive interfaces are switched once. This switching does not cause data interruptions.

Example

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