8.1.3 Adding a member switch
As shown in the following figure, add standalone Switch B to a stack consisting of a single member switch A.
|
The following table describes how to add a member switch.
Operation Flow and Description |
Setting object |
---|---|
(1) Check the license and software of member switch A and Switch B.
|
Member Switch A Equipment B (member switch B) |
(2) Configuring Member Switch B Configuration
|
Member Switch A |
(3) Switch B is moved to one stack as switch number 2.
|
Equipment B (member switch B) |
(4) Configuration settings for member switch B to connect to member switch A
|
Equipment B (member switch B) |
(5) Migrating to two stacks, member switch A and member switch B
|
- |
Legend:-: Not applicable
- <Structure of this section>
(1) Check the license and software of member switch A and Switch B.
Use the operation command to check whether the active member switch A, the optional license for Switch B to be added, and the software version meet the stack configuration conditions. For details about the conditions, see 7.2.3 Stack configuration conditions.
- [Procedure]
-
-
Check the optional licensing with show license command on member switch A.
-
Check the software version with show version software command on member switch A.
-
Check the optional licensing by show license command on Switch B.
-
Check the software version using show version software command. This is done on Switch B.
-
(2) Configuring Member Switch B Configuration
Sets the configuration of member switch B to be added to member switch A. Note that the configuration of the stack port and the master election priority shown below is set for member switch A.
switch 1 priority 20 ! interface tengigabitethernet 1/0/29 switchport mode stack ! interface tengigabitethernet 1/0/30 switchport mode stack
- Points to note
-
The configuration of member switch B, which is the backup switch, is synchronized with the configuration of member switch A, which is the master switch. For this reason, the following configuration must be set for member switch A:
-
Model of member switch B
-
Stacking port on member switch B
-
Master election priority of member switch B
When a member switch B model is set, the configuration of the Ethernet interface corresponding to the specified model is automatically created. Also, set the master election priority of member switch B to a value smaller than member switch A so that member switch B becomes the backup switch.
-
Command examples
-
(config)# switch 2 provision 2630-24t4xw
Set the model of the device you plan to use as member switch B. Here, the modelsare set in AX2630S-24T4XW.
-
(config)# interface tengigabitethernet 2/0/29
(config-if)# switchport mode stack
(config-if)# exit
(config)# interface tengigabitethernet 2/0/30
(config-if)# switchport mode stack
(config-if)# exit
Sets the stack port on the Ethernet interface of member switch B (switch number 2).
-
(config)# switch 2 priority 10
Sets the master election priority of member switch B (switch number 2) to 10.
-
(config)# save
(config)# exit
Saves the configuration and returns to administrator mode from configuration command mode.
(3) Switch B is moved to one stack as switch number 2.
Set the Switch number of Switch B to 2 to enable the stack function.
- Points to note
-
Set the switch number of Switch B to 2. You must then use stack enable command. Then, you must restart the Switch. Therefore, make settings before starting operation. If stack enable command is set, all configurations cannot be changed until the Switch is restarted.
Command examples
-
# set switch 2
# configure
Set the switch number to 2.
-
(config)# stack enable
After this command execute, please save configuration editing now in startup-config, and please reboot a device.
Do you wish to continue ? (y/n):
Configure the settings to operate on the stack. Enter y for the configuration change confirmation message.
-
(config)# save
(config)# exit
Saves the configuration and returns to administrator mode from configuration command mode.
-
# reload
Restarts the Switch. After rebooting, the Switch operates as a member switch for a single stack.
(4) Configuration settings for member switch B to connect to member switch A
Sets the minimum configuration for member switch B to connect to member switch A and configure the stack.
- Points to note
-
Set the master election priority of member switch B to 1 so that member switch B does not operate as a master switch even if member switch A restarts due to a failure or other reason when it is connected to member switch A.
The configuration set here is replaced by the configuration set by member switch A, which is the master switch.
Command examples
-
(config)# interface tengigabitethernet 2/0/29
(config-if)# switchport mode stack
(config-if)# exit
(config)# interface tengigabitethernet 2/0/30
(config-if)# switchport mode stack
(config-if)# exit
Sets the stack port on the Ethernet interface of member switch B (switch number 2).
-
(config)# switch 2 priority 1
Sets the master election priority of member switch B (switch number 2) to 1.
-
(config)# save
(config)# exit
Saves the configuration and returns to administrator mode from configuration command mode.
(5) Migrating to two stacks, member switch A and member switch B
A member switch A operating as a member switch of a single stack and a member switch B stack port are connected to move to a two-member stack.
Because the master election priority of member switch B is 1, member switch A continues to operate as the master switch, and member switch B automatically restarts.
After reboot, member switch B will automatically reboot to synchronize with the configuration of member switch A. Then, it operates in a stacked configuration where member switch A is the master switch and member switch B is the backup switch.
[Procedure]
-
Connect member switch A to the stacking port of member switch B.
-
# show switch detail
Execute the operation command show switch detail to confirm that member switch A is running on the stack that is the master switch and member switch B is the backup switch.