cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1650
Views
0
Helpful
14
Replies

Cisco 3850 Stacking help

Ahmed Ashfaque
Level 1
Level 1

Good Day All,

I am working on stacking for Cisco 3850 for what I have 4 switches.

I configured all 4 switches as stand alone with priority as below for example:

sw1 "swi 1 pri 15"

sw2 "swi 1 pri 14"

sw3 "swi 1 pri 13"

where 

Serial SW1 : FCW1907D0BV
MAC SW1 : c8:00:84:58:6f:00

Serial SW2 : FOC1905U1FR
MAC SW2 : bc:f1:f2:ae:17:80

Serial SW3 : FOC1905X1F1
MAC SW3 : bc:f1:f2:9a:35:80

after this saved config on each switch and connect stack one by one and switch got rebooted, once stack are up I saw below:

Switch#show switch 

Switch/Stack Mac Address : bcf1.f29a.3580 - Local Mac Address
Mac persistency wait time: Indefinite
H/W Current
Switch# Role Mac Address Priority Version State
------------------------------------------------------------
*1 Active bcf1.f29a.3580 1 V04 Ready
2 Standby bcf1.f2ae.1780 1 V04 Ready
3 Member c800.8458.6f00 1 V04 Ready

means SW3 is active which should not be as per concept..any suggestion or tip to get SW1 as master or active , sw2 as standby and rest all are as memeber?

Regards, 

14 Replies 14

Philip D'Ath
VIP Alumni
VIP Alumni

You build the stack first - and then configure them.

I normally leave them wiped.  And then power them up in the order I want them to be (switch 1, switch 2, etc).

Then you can do a:

switch 1 priority 15
switch 2 priority 14

etc.  Priority configuration guide:

http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/3se/ha_stack_manager/configuration_guide/b_hastck_3se_3850_cg/b_hastck_3se_3850_cg_chapter_010.html#con_1153255

Guys now I am booting one by one as I want swi1 to be master to this device is booted up as first...and so on ...but I am amazed why priority is not coming up on saying show swi since i have configured...

Regards,

hey did you capture the election process when consoled in it will give us an indication of what is happening , very difficult to say what the problem is without seeing this would be just guessing.

The priority config section is definitely saved yes , you could also try set it from bootloader What version of code are you currently on ? Can you upload the process as it takes place

Priority Values

A higher priority value for a stack member increases its likelihood to be elected stack master and to retain its stack member number. The priority value can be 1 to 15. The default priority value is 1. You can display the stack member priority value with the show switch user EXEC mode command.

3750-Stk>show switch
                                               Current
Switch#  Role      Mac Address     Priority     State
--------------------------------------------------------
 1       Slave     0016.4748.dc80     1         Ready
*2       Master    0016.9d59.db00     5         Ready

Cisco recommends that you assign the highest priority value to the switch that you prefer to be the stack master. This ensures that the switch is re-elected as stack master if a re-election occurs.

How do you change the priority value?

  • From the global configuration mode, issue the command switch stack-member-number priority new-priority-value .

  • From the bootloader switch: prompt, issue the command set SWITCH_PRIORITY new-priority-value .

Even though the priority value applies immediately to the member, it will not affect the status of the current stack master. New priority value will play a role in the next stack-master election.

Stack Master Election

How is the stack master elected?

These rules have been defined to determine which unit within a stack is chosen as the master. When switches are added or stacks are merged, the master will be chosen based on these rules, in the order specified:

  1. The switch that is currently the stack master

    Note: When stacks merge, the elected stack master would have been the master of one of the merged stacks.

    Note: When stacks partition, the stack master of the original stack will be the master of its partition.

  2. The switch with the highest stack member priority value

    Note: Cisco recommends that you assign the highest priority value to the switch that you prefer to be the stack master. This ensures that the switch is re-elected as stack master if a re-election occurs.

  3. The switch that uses the non-default interface-level configuration

  4. The switch with the higher Hardware/Software priority. These switch software versions are listed from highest to lowest priority:

    1. Cryptographic IP services image software

    2. Noncryptographic IP services image software

    3. Cryptographic IP base image software

    4. Noncryptographic IP base image software

    Note: Switches that run Cryptographic or IP services image will take a longer time to load than Non-Cryptographic or IP base image. When you power on or reset an entire switch stack, some stack members will not participate in the stack master election. This is because stack members that are powered on within the same 20-second time frame participate in the stack master election and have a chance to become the stack master. Stack members that are powered on after the 20-second time frame do not participate in this initial election and only become stack members. At times, switches with lower software priority can become the stack master, but all stack members will participate in the stack master re-election.

  5. The switch with the longest system up-time

  6. The switch with the lowest MAC address

Note: Data forwarding will not be affected within the stack master election.

When is the stack master elected?

  • When the whole switch stack is reset1

  • When the stack master is reset or powered off

    Note: If you reset the stack master, it would reset the whole stack.

  • When the stack master is removed from the stack

  • When the stack master switch has failed

  • The switch stack membership is increased by if you add powered-on standalone switches or switch stacks.1

but I am  not able to see priorities..can u advice how to fix it since result is as i want...

regards, 

have you saved the priorities on each switch before powering down and connecting them to the stack ?

Can you provide the console outputs of the election process so we can see what's going on ?

all your showing us is its being elected incorrectly we need more information to be able to diagnose what's wrong , also provide the image your on it could be a bug

Election is ok now as I want but I want to know why priorities are not showing up...

Yes when I configured the priorities I save before it took to stack..

what logging you need pls advice with command and i will paste the output..

BR,,

ok so even though switch 1 is now the master when you do a show switch it still shows it as priority 1 ?  if that's the case its probably an ios-xe bug can you post what it shows now and the version of ios-xe your on

If your trying to see the switch priority in the running config its removed when the stack is formed by default

IOS is....

Master#show version
Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.07.00E RELEASE SOFTWARE (fc4)

Cant see any known stack caveats for your release that describes your issue , you may have hit a bug that's unknown yet , can you post the full show switch detail and show version from the stack

https://software.cisco.com/download/release.html?mdfid=284455429&softwareid=282046477&os=&release=3.7.3E&relind=AVAILABLE&rellifecycle=&reltype=latest&i=!pp

In short you didn't really do it in the right order. You assign the priorities after joining the stack, not before.

Switch#show switch
Switch/Stack Mac Address : c800.8458.6f00 - Local Mac Address
Mac persistency wait time: Indefinite
H/W Current
Switch# Role Mac Address Priority Version State
------------------------------------------------------------
1 Member bcf1.f29a.3580 1 V04 Ready
2 Member c800.8470.2800 1 V04 Ready
*3 Active c800.8458.6f00 1 V04 Ready
4 Standby bcf1.f2ae.1780 1 V04 Ready

thats the result I want to see but why priority is not showing up???

any idea guys???

Mark Malone
VIP Alumni
VIP Alumni

Hey its probably the way they were booted up , if there all up in the stack now and its not production just do a reload from cli it will reboot whole stack , should go through election again and chose your switch 1 once that config is saved above.

If your building it from scratch again make sure switch1 comes up first and does not reboot while the  others are connected to it.

Guys now I am booting one by one as I want swi1 to be master to this device is booted up as first...and so on ...but I am amazed why priority is not coming up on saying show swi since i have configured...

Regards,

Switch#show switch
Switch/Stack Mac Address : c800.8458.6f00 - Local Mac Address
Mac persistency wait time: Indefinite
H/W Current
Switch# Role Mac Address Priority Version State
------------------------------------------------------------
1 Member bcf1.f29a.3580 1 V04 Ready
2 Member c800.8470.2800 1 V04 Ready
*3 Active c800.8458.6f00 1 V04 Ready
4 Standby bcf1.f2ae.1780 1 V04 Ready

thats the result I want to see but why priority is not showing up???

any idea guys???