This is a little guide about how to select in a stackable switches as a Master or Slave switch.
We are going to use command "stack priority".
By default, the stack priority of a member switch is 100.
A larger priority indicates a higher priority, meaning that a switch is more likely to be selected as a master switch.
For example, with command display stack, we will be able to check the priority of the switches, as on the following, if switch as is as a master switch, if it is reloaded, one of the switches that are on standby, will become as a new master switch. In order to avoid this problem we need to change the priority.
<HUAWEI> display stack
--------------------------------------------------------------------------------
MemberID Role MAC Priority DeviceType Description
--------------------------------------------------------------------------------
0 Master 0004-9f31-d520 100 CE6850-48T4Q-EI
1 Standby 0004-9f62-1f40 100 CE6850-48T4Q-EI
2 Standby 0004-9f69-a391 100 CE6850-48T4Q-EI
--------------------------------------------------------------------------------
Set the stack priority of the member switch that we want as a master.
<HUAWEI> system-view [HUAWEI] stack slot 0 priority 150 Warning: Please do not frequently modify Priority because it will make the stack split. Continue? [Y/N]:y
<HUAWEI> display stack
--------------------------------------------------------------------------------
MemberID Role MAC Priority DeviceType Description
--------------------------------------------------------------------------------
0 Master 0004-9f31-d520 150 CE6850-48T4Q-EI
1 Standby 0004-9f62-1f40 100 CE6850-48T4Q-EI
2 Standby 0004-9f69-a391 100 CE6850-48T4Q-EI
--------------------------------------------------------------------------------
Using that, we will not have trouble with choosing a switch to be as a Master.