Stack Function
Stack Function
1. Function Overview
The stack function connects multiple network switches and operates them as a single virtual network switch.
The features of the stack are shown below.
-
Realizing the redundancy with high usage efficiency
There are two methods for configuring networks without a single point of failure (SPOF). Either configure networks with VRRPs and STPs or using stacks and link aggregation.
By using the stack, unlike VRRP, there is no standby network switch, so you can increase the usage efficiency of the network switch while ensuring redundancy. -
Easy port expansion
You can easily increase the number of available ports by adding network switches.-
Stack overview
-
The stack function is disabled in default factory settings.
2. Definition of Terms Used
Member switch
A network switch that makes up the stack.
Each switch is identified by a stack ID.
Stack ID
An ID that identifies the member switches that make up the stack.
The stack ID can be set from 1 to the maximum number of stacks that can be configured (currently 2).
Main switch
The main switch is selected from among member switches for managing other member switches.
Given default settings, the switch with stack ID 1 operates as the main switch.
Virtual switch
A single logical switch consisting of multiple member switches using the stack function.
Stack port
SFP+ slot used to connect the network switches that make up the stack.
Stack link
A connection between member switches that make up a stack.
3. Function Details
3.1. Stack configuration
The configurations that can be stacked for each model are shown below.
Only configurations with two units of the same model are supported.
However, considering that stacks should reduce the impact of failures, make sure stacks are always configured with two stack links.
-
SWX2310P-28GT stack configuration
-
SWX3200-28GT stack configuration
-
SWX3200-52GT stack configuration
3.2. Connection between member switches
When the stack function is enabled, the following SFP+ slots are switched to stack ports for connecting between members.
-
SWX2310P-28GT : Ports 27 and 28
-
SWX3200-28GT : Ports 27 and 28
-
SWX3200-52GT : Ports 51 and 52
Unlike normal communication ports, stack ports are used only for communication between member switches.
Connection between member switches is only possible with a direct connection cable (YDAC-10G-1M/3M) or an SFP+ module (YSFP-10G-SR/LR) provided by Yamaha.
When connecting with another company’s product, the stack link will be forced down.
Stack ports are connected to the lower and higher number ports on member switches.
3.3. Main switch selection and MAC address assignment
The rules for main switch selection and MAC address assignment are indicated below.
Note that the MAC address used in the stack configuration is applied according to the following rules in order to eliminate the impact on communication.
-
In the default stack configuration, the MAC address of the main switch (switch with ID 1) is used as the MAC address of the virtual switch.
-
If a member switch other than the main switch is disconnected (due to an error) during stack configuration, then the virtual switch will continue to use the specified MAC address.
-
If the main switch is disconnected (due to an error) during stack configuration, the virtual switch will continue to use the specified MAC address.
In other words, the MAC address of the network switch that is not included in the stack configuration is used. -
Even if a network switch other than the failed switch (a network switch with a different MAC address) is installed as a member switch, the virtual switch will continue to use the specified MAC address.
If you want to reconfigure the stack with the current configuration status, restart the virtual switch at the same time to perform reconstruction.
(The stack with ID 1 becomes the main switch and the virtual switch uses the MAC address of the main switch.)-
Main switch selection and MAC address assignment
No Stack configuration Main switch selection rule 1
Initial composition
The stack with ID 1 specified is selected as the main switch.
In that case, the MAC address of stack ID 1 is used as the virtual switch MAC address.2
Fault occurrence
If an error occurs in the main switch, the member switch with the smallest stack ID number is selected as the main switch.
In that case, the virtual switch retains the MAC address of stack ID 1.3
Abnormal state recovery
If a network switch with a failure is reinstalled in the stack, the switch currently selected as the main switch will continue to function as the main switch.
In that case, the virtual switch MAC address remains the MAC address of stack ID 1 where the failure occurred.
-
3.4. Operations on virtual switches
Operations on virtual switches in a stack configuration are basically controlled from the main switch.
The specifications related to operation are shown below.
-
Logging in to a virtual switch always logs into the main switch. *
If necessary, the *remote-login command can be used to log into another member switch.-
Prompt when logging into the main switch
Yamaha>
-
Prompt when logging into a member switch
Yamaha-2> (1)
1 The stack ID number is indicated after the host name.
-
-
The configuration (running-config, startup-config) for the virtual switch is always synchronized between member switches.
When finished configuring settings, be sure to save the running-config settings using the write command.
Note, however, that the write command can only be executed from the main switch. -
When operating a virtual switch, the information stored in the L2/L3 network switch (e.g. FDB learning information, ARP cache, etc.) is automatically synchronized.
There is no need for the user to be aware of this. -
To view the virtual switch log, log in and then execute the show logging command.
In that state, the log shown is for the main switch. To view the log for a member switch, use the remote-login command to log into the applicable member switch and view the corresponding log.
3.5. Network switch status when stacking
The member switch manages the status in the stack configuration as follows.
That status can be viewed using the show stack command.
-
Setting
-
A state in which one or more stack port links are up, and the settings necessary for stacking between member switches are performed.
Specifically, the configuration is automatically ascertained between member switches.
-
-
Active
-
A state in which automatic recognition of the configuration between member switches is completed, various settings are synchronized, and virtualization is performed by multiple member switches.
Virtualization is performed by two or more switches.
-
-
Inactive
-
A state in which a failure has occurred and the virtual switch has been removed.
All communication ports, including stack ports, are forcibly shut down and communication is disabled. (Closed state)
-
-
Standalone
-
The stack function is enabled, but since negotiation cannot be performed with the member switch, it is operating on one unit.
Transition to this state occurs when there is no opposing switch temporarily, such as during initial installation.
In this state, the stack ID must be enabled, so it is operated with the specified ID setting.
-
-
Standalone(separated)
-
Same status as Standalone status indicated above.
However, it remembers that a stack was once configured and retains main switch selection information that can be used when reconfiguring the stack.
-
-
Disable
-
The stack function is disabled.
In this state, the stack is operated with the ID number forcibly set to 1 (even if the stack ID was set to a value other than 1).
-
3.6. Detection and measures for abnormal conditions
When a member switch in the stack configuration detects an error, it tries to resolve it autonomously within the virtual switch so that the network service is not affected.
This switch monitors the following abnormal conditions.
-
Abnormality detection on the local node
-
Does not meet stack configuration conditions (stack ID error, firmware version error)
-
Stack link error (down detection)
-
Fan stopped
-
Thermal sensor abnormality (only for the SWX2310P-28GT)
-
Voltage value error
-
Current value error
-
-
Connection node error detection
-
Heartbeat frame reception timeout
-
Heartbeat is a function to check whether member switches are operating normally.
If the heartbeat frame is not received for a certain period (currently 4 seconds), it is determined that an error has occurred in the member switch.
The operation when an error is detected is shown below.
Detected node | Detected content | Operation after detection | State after detection | Remarks | |
---|---|---|---|---|---|
Main switch |
Setting error |
Abnormal stack ID or firmware version |
As a virtual switch, it is determined that processing cannot be continued, and the network port and stack link are forcibly taken down and disconnected from the stack configuration. |
Inactive |
|
Stack link down |
One of the two links down |
The status of the main switch is maintained, but two-way communication is achieved via one link. |
Active |
||
Both links down |
The status of the main switch is maintained. |
Standalone(separated) |
Possible double-main status |
||
HW error |
Fan stopped, thermal abnormality, voltage/current value error |
In this state, it is determined that the network switch cannot continue to be treated as the main switch, so the network ports and stack links are forcibly disabled to disconnect the switch from the stack configuration. |
Inactive |
||
Heartbeat error |
Notifications from member switches stopped |
Continues to be operated as the main switch. |
Standalone(separated) or Active |
If there is only one remaining configuration, Standalone (separated) |
|
Non-main member switch |
Setting error |
Abnormal stack ID or firmware version |
As a virtual switch, it is determined that processing cannot be continued, and the network port and stack link are forcibly taken down and disconnected from the stack configuration. |
Inactive |
|
Stack link down |
One of the two links down |
The member switch status is maintained, but two-way communication is achieved with one switch. |
Active |
||
Both links down |
Upgraded to a main switch to continue service. |
Standalone(separated) |
Possible double-main status |
||
HW error |
Fan stopped, thermal abnormality, voltage/current value error |
In this state, it is determined that the network switch cannot continue to be treated as a member switch, so the network ports and stack links are forcibly disabled to disconnect the switch from the stack configuration. |
Inactive |
||
Heartbeat error |
Notifications from the main switch stopped |
Upgraded to a main switch to continue service. |
Standalone(separated) or Active |
If there is only one remaining configuration, Standalone (separated) |
4. Related Commands
Related commands are indicated below.
For details, refer to the Command Reference.
Operations | Operating commands |
---|---|
Setting stack functions |
stack |
Changing the stack ID number |
stack renumber |
Setting the IP address range used for stack ports |
stack subnet |
Show stack information |
show stack |
5. Stack Initial Settings
The initial setting flow for stack configuration is shown below.
-
Preparation of necessary equipment
-
Member switch settings
-
Connecting member switches
5.1. Preparation of necessary equipment
Prepare the equipment necessary to configure the stack.
-
Member switch
Prepare the member switches for stack configuration.
For the stackable configurations, refer to 3.1 Stack configuration. -
Stack port connection cable
Determine and prepare the interfaces to connect the member switches.
Use direct connection cables to configure stacks within a rack and SFP+ modules to configure them across longer distances, such as between floors or buildings.
For more details, refer to 3.2 Connection between member switches. -
External memory (SD card)
It is recommended to use external memory to save backup data such as configs and logs during stack operation.
By using external memory, you can use it to recover the config if a failure occurs.
5.2. Member switch settings
Set the member switches that constitute the stack.
Consider the following before you begin configuration.
-
Determining stack IDs to be assigned to member switches
Stack IDs to be assigned to member switches must be statically determined.
During initial settings, stack ID: 1 will be the main switch. -
Determining the save destination for the startup config
Determine the save destination for the startup config during stack configuration.
Select 0 to 4 in the flash ROM as the save destination and indicate in the description that it is for saving stack information.
After reviewing, configure member switches individually according to the following procedure.
-
Starting the member switches
Start the member switches individually and access them from the serial console. -
Checking and updating the firmware version
Use the show environment command to check the current firmware version.Yamaha> show environment SWX3200-52GT BootROM Ver.1.00 SWX3200-52GT Rev.4.00.05 (Fri Mar 9 09:34:05 2018) (1) main=SWX3200-52GT ver=00 serial=S00000000 MAC-Address=00a0.de00.0000 ...
1 Check the firmware version Use the RTpro site to check the most recent version released.
If the public firmware version of the relevant switch is newer than the firmware that is running, update it.-
It is recommended that the firmware version in member switches be updated to the latest version with fixes for known issues.
-
Given default settings, firmware updating using an SD card is enabled.
Refer to Firmware update for how to update using an SD card.
-
-
Setting the save destination for the startup config
Use the startup-config select command to select the configuration used for stack operations.
At this time, it is recommended to set the description to use for the config during stack operation.Yamaha> enable Yamaha# startup-config description 2 Stack (1) Yamaha# startup-config select 2 (2) reboot system? (y/n): y (3)
1 Set the description “Stack” to startup-config #2 2 Select startup-config #2 3 Restart the system -
Setting the stack ID
Check the network switch status with show stack to confirm that the stack function is disabled.
Also check the stack ID. The default stack ID setting is 1.Yamaha> enable Yamaha# Yamaha# show stack Stack: Disable Configured ID : 1 Subnet on stack port : Auto-ip Virtual MAC-Address : 00a0.de00.0000 ID Model Status Role Serial MAC-Address ------------------------------------------------------------------------ Interface Status ------------------------------------------------------------------------ Yamaha#
If necessary, change the stack ID number using the stack renumber command.
Yamaha(config)# stack 1 renumber 2 (1) Yamaha(config)# do show stack Stack: Disable Configured ID : 2 Subnet on stack port : Auto-ip Virtual MAC-Address : 00a0.de00.0000 ID Model Status Role Serial MAC-Address ------------------------------------------------------------------------ Interface Status ------------------------------------------------------------------------ Yamaha#
1 Change the stack ID number from #1 to #2 -
Enabling the stack function
Enable the stack function using the stack enable command.
After entering the command, reboot the device.
Default-config is applied after rebooting is finished.Yamaha(config)#stack enable (1) reset configuration and reboot system? (y/n): y (2)
1 Enable the stack function 2 Restart the system After rebooting, check the network switch status with show stack to confirm that the stack function is enabled.
Also check the save destination of the startup config.Yamaha> enable Yamaha# Yamaha# show stack Stack: Enable (1) Configured ID : 1 Running ID : 1 Status : Standalone Subnet on stack port : Auto-ip Virtual MAC-Address : 00a0.de00.0000 ID Model Status Role Serial MAC-Address ------------------------------------------------------------------------ 1 SWX3200-52GT Standalone Main S000000000 00a0.de00.0000 ... (Because it is operating with one unit, it is Standalone Main) Interface Status ------------------------------------------------------------------------ port1.51 down port1.52 down Yamaha>show environment SWX3200-52GT BootROM Ver.1.00 SWX3200-52GT Rev.4.00.05 (Fri Mar 9 09:34:05 2018) main=SWX3200-52GT ver=00 serial=S00000000 MAC-Address=00a0.de00.0000 CPU: 2%(5sec) 2%(1min) 1%(5min) Memory: 10% used Fan status: Normal Fan speed: FAN1=4000RPM FAN2=3870RPM Startup firmware: exec0 Startup Configuration file: config2 (2) Serial Baudrate: 9600 Boot time: 2018/01/01 11:06:36 +09:00 Current time: 2018/01/02 16:12:23 +09:00 Elapsed time from boot: 1days 05:05:49 Temperature status: Normal Temperature: 37 degree C Voltage: 11.99V Current: 0.741A
1 The stack function is enabled 2 Confirm that the specified startup config is correctly applied.
5.3. Connecting member switches
Connect stack-enabled network switches using direct connection cables or SFP+ modules.
For connection instructions refer to Connection between member switches.
The member switches can be connected with either the power turned on or off.
After connecting the member switches, check the system status using the show stack command.
Yamaha# show stack Stack: Enable Configured ID : 1 Running ID : 1 Status : Active Subnet on stack port : Auto-ip Virtual MAC-Address : 00a0.de00.0000 ID Model Status Role Serial MAC-Address ------------------------------------------------------------------------ 1 SWX3200-52GT Active Main S000000000 00a0.de00.0000 ... (Switch with stack ID 1 is main) 2 SWX3200-52GT Active Member S000000000 00a0.de00.0000 ... (Switch with stack ID 2 is member) Interface Status ------------------------------------------------------------------------ port1.51 up port1.52 up port2.51 up port2.52 up
Use the backup system command to back up the initial setting status of the member switch to the SD card.
By saving the following firmware files in the indicated folder on the SD card, both settings and firmware can be backed up during backup execution.
-
SWX2310P-28GT: [Folder]/swx2310p/firmware, [Firmware file]swx2310p.bin
-
SWX3200-28GT and SWX3200-52GT: [Folder]/swx3200/firmware, [Firmware file]swx3200.bin
Yamaha> enable Yamaha# backup system (1) Succeeded to backup system files and firmware file. Yamaha# remote-login 2 (2) Entering character mode Escape character is '^]'. SWX3200-52GT Rev.4.00.XX Copyright (c) 2018 Yamaha Corporation. All Rights Reserved. Yamaha-2> enable Yamaha-2# backup system (3) Succeeded to backup system files and firmware file.
1 Copy all main switch settings to the SD card 2 Remotely log in to a member switch (Stack ID: 2) 3 Copy all the settings for member switch (stack ID: 2) to the SD card
This completes the initial stack settings.
Install the virtual switch in the network to be used and perform the settings required for operation.
After completing the settings required for operation, backup should be performed in case of an abnormality, just as with the initial settings.
6. Exchanging Member Switches
The following describes how to replace a member switch after a fault occurs in a configuration with two SWX3200-52GT switches.
The following shows each case of using and not using an SD card.
6.1. Exchange procedure using an SD card
Member switches are exchanged by backup/restore using an SD card.
-
Exchange procedure
-
In normal operation
After completing the setting to the member switches, back up the system information to the SD card in consideration of failure.
To back up system information, execute the backup system command.
Before backing up the system information, also backup the firmware by saving the swx3200.bin file (firmware file) in the /swx3200/firmware folder in the SD card. -
Fault occurrence
Assume that an error occurs in the member switch with stack ID 2. -
Fault recovery
Prepare the member switches to be exchanged and connect the SD card that contains the backup of the failed switches.
Apply the firmware and system information by executing the restore system command.
After they are applied, turn off the power, connect to the network switch currently functioning as the main switch, and turn on the power to restore the stack configuration.
-
6.2. Exchange procedure without using an SD card
Exchange the member switches without using an SD card.
-
At the start of operation
After installation of the member switches is completed, store the same revision firmware as the firmware written in the member switches on a PC, etc.
Record the serial number, config ID being used, and stack ID of each member switch.Yamaha> show environment SWX3200-52GT BootROM Ver.1.00 SWX3200 Rev.4.00.05 (Fri Mar 9 09:34:05 2018) main=SWX3200-52GT ver=00 serial=S00000000 MAC-Address=00a0.de00.0000 (1) CPU: 2%(5sec) 2%(1min) 1%(5min) Memory: 10% used Fan status: Normal Fan speed: FAN1=4000RPM FAN2=3870RPM FAN3=3870RPM FAN4=4000RPM Startup firmware: exec0 Startup Configuration file: config1 (2) Serial Baudrate: 9600 Boot time: 2018/01/01 11:06:36 +09:00 Current time: 2018/01/02 16:12:23 +09:00 Elapsed time from boot: 1days 05:05:49 Temperature status: Normal Temperature: 37 degree C Voltage: 11.99V Current: 0.741A Yamaha> Yamaha> show stack Stack: Enable Configured ID : 1 (3) Running ID : 1 Status : Active Subnet on stack port : Auto-ip Virtual MAC-Address : 00a0.de00.0000 ID Model Status Role Serial MAC-Address ------------------------------------------------------------------------ 1 SWX3200-52GT Active Main S000000000 00a0.de00.0000 2 SWX3200-52GT Active Member S000000000 00a0.de00.0000 Interface Status ------------------------------------------------------------------------ port1.51 up port1.52 up port2.51 up port2.52 up
1 Serial number 2 Config ID 3 Stack ID -
Fault occurrence
Assume that an error occurs in the member switch with stack ID 2. -
Fault recovery
Prepare the member switches to be exchanged and write the saved firmware.
Start the member switches and change the config ID used at startup.-
If the config ID used at the start of operation was 0, there is no need to change the config ID.
Yamaha> enable Yamaha# startup-config select 1 reboot system? (y/n): y
After rebooting, enable the stack function.
For the stack ID to be set, refer to the member switch serial number and stack ID recorded at the start of operation.Yamaha> enable Yamaha# configure terminal Yamaha(config)# stack 1 renumber 2 (1) Yamaha(config)# stack enable (2) reset configuration and reboot system? (y/n): y
1 Set stack ID 2 2 Enable the stack function After enabling the stack function, turn off the power, connect to the network switch functioning as the main switch, and turn on the power to restore the stack configuration.
-
7. Firmware Update
The following two methods are provided for updating the firmware during stack configuration.
-
Method to update member switches during configuration simultaneously (parallel update)
-
Method to update without stopping network services (sequential update)
Parallel update is an effective method if you have enough time to allow a service outage.
However, *during stack configuration, it is recommended that updates be performed sequentially without a service outage. *
Note that firmware updates during stack configuration are supported only for the following.
-
Update based on using a TFTP client or web GUI to send the firmware update
-
Update using an SD card
If the firmware is updated while the SD card is inserted, SD card boot may be performed when restarting.
The SD card boot can be disabled with the boot prioritize sd command.
Yamaha> enable Yamaha# boot prioritize sd disable (1) reboot system? (y/n): y
1 | Disable SD card boot |
For more information, refer to Firmware Update.
7.1. Firmware parallel update
Firmware parallel update updates the firmware of the member switches in the stack configuration at the same time.
The service will be stopped because the entire virtual switch is restarted for the update.
Note the following points when performing parallel update.
-
Confirm that the firmware update method is set to normal (firmware-update reload-method command).
-
Confirm that the firmware update application time is set to the specified time (firmware-update reload-time command).
An overview of parallel update is shown below.
-
Parallel update process flow
7.2. Firmware sequential update
Firmware serial update updates the firmware of the member switches in the stack configuration sequentially.
This update does not involve any service outage because the entire virtual switch does not need to be rebooted for the update. (* Refer to section 6 in Points of Caution.)
When performing a sequential update, note the following points.
-
Confirm that the firmware update method is set to sequential (firmware-update reload-method command).
-
Confirm that the firmware update application time is set to the specified time (firmware-update reload-time command).
An overview of sequential update is shown below.
-
Sequential update process flow
8. Points of Caution
-
When the stack function is enabled, the following functions cannot be used.
-
RMON
-
IPv6
-
VRRP
-
MLD snooping
-
-
When the stack function is enabled, it can be used as a function, but some restrictions occur.
-
Mirroring function
-
Mirroring between member switches is not possible.
-
-
Flow control
-
Pause frame cannot be transmitted.
-
-
Back pressure function
-
When communicating via the stack port, jam signals are not transmitted.
-
-
Port LED
-
Only for the SWX2310P-28GT, the LED does not blink in Link/Act mode.
-
-
SFP optical reception level monitoring
-
The optical reception level of the stack port is not monitored.
-
-
Link aggregation
-
The maximum number of logical interfaces is reduced by one.
-
-
MODE button
-
When a stack is configured with the SWX2310P-28GT switches, control using the MODE button is disabled.
As with the SWX3200-28GT/52GT switches, this network switch automatically transitions to STATUS mode when a loop occurs.
-
-
Command line input
-
The users who can transition to global configuration mode are limited.
When the console side is in global configuration mode and the telnet side transitions to global configuration mode, the console side automatically transitions to privileged EXEC mode.
Console, telnet, ssh, remote login, and GUI settings are exclusively controlled. -
It is not possible to log in from the main switch and other member switch consoles at the same time.
-
-
DHCP client
-
If the stack function is enabled and the Auto IP function is used on the stack port, the DHCP client cannot be used.
-
-
startup-config select command
-
Do not use the startup-config select command while the stack is configured. It may become impossible to configure correctly.
To switch the config using the startup-config select command, disconnect the direct attach cable and cancel the stack configuration before executing.
-
-
-
When the stack function is enabled, make sure that the stack configuration is configured before setting functions with commands or the GUI.
If the stack is not configured correctly, the settings may not be reflected correctly.
The write command and copy running-config startup-config command can be executed only on the main switch (in an active state).
They cannot be executed on a member switch or an incorrectly configured stack. -
When the stack function is enabled, the stack control packets use transmission queues #7 and #6, so do not assign other packets to transmission queues #7 and #6.
When QoS is enabled, transmission queues #7 and #6 are assigned by default in the CoS-transmission queue ID conversion table, so change the assignment. -
When the stack function is enabled, the initial setting for the transmission queue specification for frames transmitted from the network switch unit is transmission queue #6.
Do not change the transmission queue specification setting for frames transmitted from the network switch unit from the initial setting. -
If there is a difference between the settings (startup-config) in the main switch and in a member switch during stack configuration, the member switch settings are changed and the switch is rebooted.
-
If there is a difference between the stack port IP address range settings for the main switch and a member switch during stack configuration, communication between stacks cannot be performed properly.