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.
Ethernet interface view, Layer-2 Ethernet interface view, Eth-Trunk interface view, Layer-2 Eth-Trunk interface view
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
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.
<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