Cisco Stackwise

Cisco’s access layer switches used to be all separate physical switches where we use Ethernet cables for connectivity between the switches. Cisco Stackwise changed this, it allows us to turn multiple physical switches into a single logical switch.

Switches that support Stackwise use a special stacking cable to connect the switches to each other. Each switch has two stacking connectors that are used to “daisy-chain” (loop) the switches together. Each switch is connected to the one below it and the bottom switch will be connected to the one on top.

The Stackwise cable is like an extension of the switching fabric of the switches. When an Ethernet frame has to be moved from one physical switch to another, the Stackwise “loop” is used. The advantage of using a cabled loop is that you can remove one switch from the stack, the loop will be broken but the stack will keep working.

One switch in the stack becomes the master that does all “management tasks” for the stack. All other switches are members. If the master fails, another member will become the new master. To select a master, Stackwise uses an election process that checks for the following criteria (in order of importance):

User priority: we can configure a priority to decide which switch becomes the master.

Hardware / software priority: The switch with the most extensive feature set has a higher priority than another switch (for example: IP Services vs IP base).

Default Configuration: A switch that already has a configuration will take precedence over switches with no configuration.

Uptime: The switch with the longest uptime.

MAC address: The switch with the lowest MAC address.

It makes sense to choose the master ourselves so normally we use user priority to configure the master.

Once the stack has been created, the configuration of the switches is the same as if it were one single switch…they share the same management IP address, hostname, etc.

Here’s a picture of the stacking connectors, this is the rear of a Cisco Catalyst 3750 switch:

You can see the two connectors on the left side…Stack1 and Stack 2. Here’s what the Stackwise cable looks like:

Now you have an idea what Stackwise is about, let’s take a look at the configuration.

Configuration

I will use two Cisco Catalyst 3750 switches to configure Stackwise. Make sure they are all powered off and then cable them like this:

First I will start the switch that I want to become the Master, i’ll use the one on top for this. Once you start it with the cables connected, you’ll see some Stackwise information during boot:

SM: Detected stack cables at PORT1 PORT2
Waiting for Stack Master Election...
SM: Waiting for other switches in stack to boot...
##################################################
SM: All possible switches in stack are booted up
Election Complete
Switch 1 booting as Master
Waiting for Port download...Complete
%STACKMGR-4-SWITCH_ADDED: Switch 1 has been ADDED to the stack
%STACKMGR-5-SWITCH_READY: Switch 1 is READY
%STACKMGR-4-STACK_LINK_CHANGE: Stack Port 1 Switch 1 has changed to state DOWN
%STACKMGR-4-STACK_LINK_CHANGE: Stack Port 2 Switch 1 has changed to state DOWN
%STACKMGR-5-MASTER_READY: Master Switch 1 is READY

Our switch detected the stacking cables and does an election to see who will become the master. By default each switch will think that it’s switch number 1 and the master. I’ll change the user priority to make sure that this switch will always be selected as the master:

We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is why:

Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.

Try for Just $1. The Best Dollar You've Ever Spent on Your Cisco Career!

Forum Replies

Hi Rene,
I have couple of questions here…
Consider a stack of 2 switches. Do We need to enable spanning tree on the stack for connecting other switches on this stack, in a redundant manner ?
Also How does the IOS upgrade happen on the member switches in stack? Would the upgrade on master take care the member switches too?

You don’t need STP for the connections between the switches in the stack, the stack is seen as one “logical” switch.

If you want to upgrade the IOS image then you should copy the image to the flash memory of all your switches, then configure the master switch to boot the new image and reload the switches. Cisco has a good document with some examples:

Can you please explain 2nd point “The switch that uses a non-default interface-level configuration” ?

Good day my friend,

It means the switch that has been pre-configured vs a switch that hasn’t been pre-configured. What do I mean by this? it means the switch which had some configurations before joining the stack will be selected ahead of the switch that had zero configs in its nvram.

New Lessons

Testimonials

Best Learning Tool

NetworkLessons.com is the best place to learn networking in a quick and easy way. Difficult topics are broken down to an easy to read and understanding format. I would highly recommend NetworkLessons.com to anyone looking for the best learning tool to develop their networking skills and pursue higher Cisco certifications.

Koundinya KalinadhabhotlaIT SpecialistMarch 5, 2018

Essential Learning Tool

NetworkLessons.com has clear and informative lessons about almost every single topic I've come across in my CCNP studies. René and his team have done an incredible job. They even put the official Cisco Press books to shame. Absolutely worth the subscription price, can't recommend it enough.

Chris ParkerNetwork EngineerJanuary 15, 2018

Lots of Useful Cisco Information Here

My students at Touro College and university can find a lot of useful Cisco information at this website. What can I say... I love NetworkLessons.com! You should be thanked more often. Thank you :)

Thomas AlvaneliCisco InstructorFebruary 14, 2019

In a League of Its Own!

I will say to anyone, without reservation and regardless of his/her goal in their studies; look no more! You've found it! I've only lately been fortunate enough to have Networklessons.com as my guide. If Cisco had a rule which said I could use ONLY ONE resource for my studies, it would be Networklessons.com. Rene's unrelenting effort to "out-do himself", and his dedication to the individual career growth of each member is a testament to what it takes to be a true professional and an asset to this industry.

Bridget EdwardsNetwork EngineerDecember 15, 2015

Easy To Read

There are a lot of websites with content about computer networks but on networklessons I found the best and easy to read articles to help me prepare for Cisco exams. I am very happy and excited about each subject that I have learned!

Gabriel SantanaData Center AnalystMay 15, 2015

Networking Made Easy

Networklessons.com is an incredible site. It's a good site for beginners and also for seasoned network engineers. Rene really covers the VERY basic of every technology. He also gradually takes you to the more involved section. Once you understand the basic, everything else falls into place.

Manny OluwoSenior Network EngineerSeptember 11, 2015

Great Source of Information

I had the classroom training for CCNP Routing & Switching and failed the test afterward. That was the reason why I searched for more and better information and found it here. NetworkLessons.com is great. Easy to follow explanations and videos. It covers all topics of the actual test. With the material from NetworkLessons.com, I passed ROUTE (with a 94% score!) and SWITCH (an 88%!) and have 1 more to go (TSHOOT). I am very confident to pass this as well. Thank you very much, Rene!

Christian RichterNetwork EngineerMay 8, 2017

Precise, Accurate and complete

NetworkLessons.com is very helpful, interesting and informative. Complex topics explained in a simple way that is very easy to understand. Amazing! Each topic of professional networking courses like CCNA, CCNP, and CCIE includes understandable examples and great instruction videos. Many Thanks to Rene! I think you are a top ranked teacher!

Mohammad Hasanuz ZamanAssistant ManagerFebruary 16, 2017

Fast & Complete!

Excellent for fast, complete and precise reviews. Suggested!

Fabrizio FrancioneSystem EngineerFebruary 15, 2016

Excellent & Helpful

I feel Rene is very helpful especially when I need help in my job in Cisco. My previous experience is with Linux systems and any open-source projects, creating various services ranging from DNS, Web services to OpenVPN, and OpenRadius. Plus maintaining security of servers. I am currently working at a Stocks Exchange Software company, which requires me to have knowledge both in Cisco, and Unix. I have some basic knowledge on Cisco, however my job requires to have more in-depth knowledge especially in multicast. One thing I love in enrolling on Network Lessons is because of Rene, I feel he is a very helpful and talented Cisco Network Engineer. Hopefully I will learn a lot on Cisco and he may help me, since I started to love Cisco.

Chester Ng NgoUnix Administrator / IT SupportNovember 18, 2015

Just Perfect

I like the way that Rene organizes the lessons and the courses. His explanations are clear and with simple examples. It's just perfect and very easy to understand. I would like to recommend NetworkLessons.com for everyone who is interested in networking.

Heng SovandaraNetwork EngineerSeptember 22, 2018

No Complexity Zone!

Networklessons.com has demonstrated an exceptional creative and effective teaching method in explaining complex networking and security concepts into an easy to understand method. It provides hope and confidence to networking professionals across the globe and, needless to say, it encourages us to teach others by following a similar teaching style. I want to thank Rene for his hard work and patience. I am along other professionals very GRATEFUL to you!