Electing a Standby
The Standby switch is selected by the Commander following the same rules used to elect the Commander. Like the Commander, the Standby switch is not changed unless a failure occurs (for example, the Standby switch fails, or the Commander fails and the Standby becomes the Commander).
Since the Commander will update the revision software and set the stack IDs of all the switches, this information will be the same for all Standby switch contenders.
The criteria used by the Commander to select the Standby is in this priority order:
A switch with the same system revision software as the commander is available. This speeds up the initial boot since the stack will not have to wait for the standby to be updated. (If this were not the case, then the selected Standby would need to be reloaded with the new system and rebooted, resulting in the selection of a new Standby. This process would continue until either the original Standby was rebooted or a Standby was chosen that already had the correct system revision).
- For all switches with the Commander's revision software, the switch with the highest priority that is not the current Commander will become the Standby switch.NOTE:
It is possible for the Standby to have a higher priority than the Commander, if the priority of the Standby was increased after the Commander becomes the Commander. (The Commander is not changed unless it fails or is on the Inactive fragment side of a stack that becomes split).
If there are two or more switches whose priority is equally high, then the Commander will look at the topology of the stack and pick a switch that is the most hops away from the Commander. This will increase the probability that the Commander and Standby switch will be in different stack fragments should a failure occur.
If the priorities and hop counts of the contenders are the same, then the switch with the lowest MAC address is selected as the Standby switch.