Switch#sh switch stack-ports
Switch # Port 1 Port 2
——– —— ——
1 Ok Down
2 Ok Down
To show stack ports status, currently only stack 1 is connected to each other. There are Stack 1 and Stack 2 for one WS-3750G-24TS
Switch#sh switch
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
2 Member 0817.35ba.ec80 1 0 Ready
This command is to show which switch is the master of the stack. The master switch’s mac address is the mac address of the switch stack.
Adjust switch priority
Switch(config)#switch ?
<1-9> Switch Number
Choose a switch number to configure.
Switch(config)#switch 1 priority ?
<1-15> Switch Priority
Default priority is 1, this can be adjusted. For this example I am adjusting Switch number 1’s priority to 15.
Switch(config)#switch 1 priority 15
Changing the Switch Priority of Switch Number 1 to 15
Do you want to continue?[confirm]
New Priority has been set successfully
Verify switch priority
Switch(config)#do sh switch
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 15 0 Ready
2 Member 0817.35ba.ec80 1 0 Ready
Verified that Switch 1 has changed its priority to 15.
Election starts while switch is rebooting
During rebooting stack switch election starts:
SM: Detected stack cables at PORT1
Waiting for Stack Master Election…
SM: Waiting for other switches in stack to boot…
#######################################################################################################################
SM: All possible switches in stack are booted up
POST: PortASIC CAM Subsystem Tests : Begin
POST: PortASIC CAM Subsystem Tests : End, Status Passed
POST: PortASIC Port Loopback Tests : Begin
POST: PortASIC Port Loopback Tests : End, Status Passed
Election Complete
Switch 2 booting as Master
Waiting for Port download…Complete
Switch stack status during election
Switch(config)#do sh sw
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
2 Member 0817.35ba.ec80 0 2 Waiting
Switch(config)#do sh sw
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
2 Member 0817.35ba.ec80 10 2 Progressing
Which switch boots up first is the master of the stack, in this scenario a new switch with higher priority is added to the switch stack.
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
2 Member 0817.35ba.ec80 10 0 Ready
Switch with a higher priority than master switch will not take over the master role, it will remain as member until the master switch fails or reboot.
Syslog after the whole election completed
Switch(config)#
00:06:47: %STACKMGR-4-SWITCH_ADDED: Switch 2 has been ADDED to the stack
00:06:58: %STACKMGR-5-SWITCH_READY: Switch 2 is READY
00:06:58: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 1 Switch 2 has changed to state UP
00:06:58: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 2 Switch 2 has changed to state DOWN
00:01:10: %STACKMGR-4-SWITCH_ADDED: Switch 1 has been ADDED to the stack (Switch-2)
00:01:10: %STACKMGR-4-SWITCH_ADDED: Switch 2 has been ADDED to the stack (Switch-2)
00:01:12: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan (Switch-2)
00:01:20: %SYS-5-CONFIG_I: Configured from memory by console (Switch-2)
00:01:20: %STACKMGR-5-SWITCH_READY: Switch 1 is READY (Switch-2)
00:01:20: %STACKMGR-5-MASTER_READY: Master Switch 1 is READY (Switch-2)
00:01:20: %STACKMGR-5-SWITCH_READY: Switch 2 is READY (Switch-2)
00:01:21: %SYS-5-RESTART: System restarted — (Switch-2)
Cisco IOS Software, C3750 Software (C3750-IPSERVICES-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1) (Switch-2)
Copyright (c) 1986-2007 by Cisco Systems, Inc. (Switch-2)
Compiled Thu 19-Jul-07 19:15 by nachen (Switch-2)
Telnet to the switch stack on any port belonging to switch 1 and 2
A switch stack connectivity is controlled by the back plane stack cables, hence access the switch via telnet is possible on any stack within a switch stack.
When the master stack is down
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
2 Member 0000.0000.0000 0 0 Provisioned
Change switch number
Switch#sh switch
Switch/Stack Mac Address : 0817.35ba.ec80
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*2 Master 0817.35ba.ec80 10 0 Ready
Switch(config)#switch 2 renumber 3
WARNING: Changing the switch number may result in a
configuration change for that switch.
The interface configuration associated with the old switch
number will remain as a provisioned configuration.
Do you want to continue?[confirm]
Changing Switch Number 2 to Switch Number 3
New Switch Number will be effective after next reboot
Reload switch in the switch stack
Switch#sh switch
Switch/Stack Mac Address : 0817.35ba.ec80
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
1 Member 0817.358d.ea00 1 0 Ready
*2 Master 0817.35ba.ec80 10 0 Ready
I want to reload switch 2 in the switch stack.
Switch#reload slot 2
Proceed with reload? [confirm]
Switch 2 reloading…
Switch#sh sw
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
2 Member 0000.0000.0000 0 0 Provisioned
Switch 2 is rebooting.
Switch#sh sw
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
2 Member 0000.0000.0000 0 0 Provisioned
3 Member 0817.35ba.ec80 10 2 Progressing
Remember that the switch 2 has been renumbered to 3?
Switch#sh sw
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
2 Member 0000.0000.0000 0 0 Provisioned
3 Member 0817.35ba.ec80 10 0 Ready
Previously provisioned mac address in the switch stack is not removed.
Remove switch provision from the switch stack
Switch(config)#no switch 2 provision
Switch(config)#do sh sw
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
3 Member 0817.35ba.ec80 10 0 Ready
Switch 2 removed.
Provision switch to the switch stack
Supposed two weeks later a new switch will be added to the switch stack, you can provision the new switch into the switch stack first.
Switch(config)#switch 4 provision ?
nme-xd-24es-1s provision an EtherSwitch SM with 24+1G interfaces
nme-xd-24es-1s-p provision an EtherSwitch SM with 24+1G interfaces
ws-c3750-24fs provision a Catalyst 3750 switch with 24FX+2G
interfaces
ws-c3750-24p provision a Catalyst 3750 switch with 24pwr+2G
interfaces
ws-c3750-24ts provision a Catalyst 3750 switch with 24+2G interfaces
ws-c3750-48p provision a Catalyst 3750 switch with 48pwr+4G
interfaces
ws-c3750-48ts provision a Catalyst 3750 switch with 48+4G interfaces
ws-c3750e-24pd provision a Catalyst 3750E switch with 24GPwr+2TenG
interfaces
ws-c3750e-24td provision a Catalyst 3750E switch with 24G+2TenG
interfaces
ws-c3750e-48pd provision a Catalyst 3750E switch with 48GPwr+2TenG
interfaces
ws-c3750e-48td provision a Catalyst 3750E switch with 48G+2TenG
interfaces
ws-c3750g-12s provision a Catalyst 3750 switch with 12G interfaces
ws-c3750g-12s-d provision a Catalyst 3750 switch with 12G interfaces
and DC power supply
ws-c3750g-16td provision a Catalyst 3750 switch with 16G+1XENPAK
interfaces
ws-c3750g-24ps provision a Catalyst 3750 switch with 24Gpwr+4G
interfaces
ws-c3750g-24t provision a Catalyst 3750 switch with 24GTX interfaces
ws-c3750g-24ts provision a Catalyst 3750 switch with 24GTX+4G
interfaces
ws-c3750g-24ts-1u provision a Catalyst 3750 switch with 24GTX+4G
interfaces
ws-c3750g-24ws-s25/50 provision a Catalyst 3750 switch with 24Gpwr+2G
interfaces + Wireless Controller
ws-c3750g-48ps provision a Catalyst 3750 switch with 48Gpwr +4G
interfaces
ws-c3750g-48ts provision a Catalyst 3750 switch with 48GTX+4G
interfaces
The supported types are listed as shown above.
Supposed the new switch that will be coming 2 weeks later is WS-C3750-48ts:
Switch(config)#switch 4 provision ws-c3750-48ts
Switch(config)#do sh switch
Switch/Stack Mac Address : 0817.358d.ea00
H/W Current
Switch# Role Mac Address Priority Version State
———————————————————-
*1 Master 0817.358d.ea00 1 0 Ready
3 Member 0817.35ba.ec80 10 0 Ready
4 Member 0000.0000.0000 0 0 Provisioned