Stacking switches (connecting them together so that they function and are managed as one large switch) requires that all switches in the stack have compatible hardware and firmware.
Stacking compatibility with the M5300 switch range
The following switches are compatible, and can be stacked together :
Notes :
Only the exact hardware versions listed are compatible. All of the switches in the stack must be on the list.
All the switches in the stack must be running the same firmware version.
That firmware version must be 10.0.0.25 or later.