Stack
Stack
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 1
Managing Switch Stacks
Restrictions for Switch Stacks
Related Topics
Supported Features in a Switch Stack, on page 2
The stack master contains the saved and running configuration files for the switch stack. The configuration
files include the system-level settings for the switch stack and the interface-level settings for each stack
member. Each stack member has a current copy of these files for back-up purposes.
Related Topics
Restrictions for Switch Stacks, on page 2
Encryption Features
If the stack master is running the cryptographic universal software image (supports encryption), the encryption
features are available on the switch stack.
FlexStack-Plus
The stack members use the Cisco FlexStack-Plus technology to work together as a unified system. Layer 2
and Layer 3 protocols support the entire switch stack as a single entity in the network.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
2 OL-32581-01
Managing Switch Stacks
Switch Stack Membership
Note Switch stacks running the LAN Base image do not support Layer 3 features.
The FlexStack-Plus bandwidth for a single stack port is 20 Gbps. With FlexStack-Plus technology, up to eight
members can be joined into a single stack. In a mixed stack of Catalyst 2960-X and Catalyst 2960-S switches,
FlexStack-Plus reverts to FlexStack capabilities of 10 Gbps stack port bandwidth and a maximum of four
members per stack.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 3
Managing Switch Stacks
Switch Stack Membership
them as the stack master. You can connect standalone switches to an existing switch stack to increase the
stack membership.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
4 OL-32581-01
Managing Switch Stacks
Stack Member Numbers
do its stack members. All remaining switches, including the former stack masters, reload and join the
switch stack as stack members. They change their stack member numbers to the lowest available numbers
and use the stack configuration of the reelected stack master.
• Removing powered-on stack members causes the switch stack to divide (partition) into two or more
switch stacks, each with the same configuration. This can cause:
• An IP address conflict in your network. If you want the switch stacks to remain separate, change
the IP address or addresses of the newly created switch stacks.
• A MAC address conflict between two members in the stack. You can use the stack-mac update
force command to resolve the conflict.
Note Make sure that you power off the switches that you add to or remove from the switch stack.
After adding or removing stack members, make sure that the switch stack is operating at full bandwidth
(40 Gbps). Press the Mode button on a stack member until the Stack mode LED is on. The last two right
port LEDs on all switches in the stack should be green. Depending on the switch model, the last two right
ports are 10-Gigabit Ethernet ports or small form-factor pluggable (SFP) module ports (10/100/1000
ports). If one or both of these LEDs are not green on any of the switches, the stack is not operating at full
bandwidth.
If you remove powered-on members but do not want to partition the stack:
• Power off the switches in the newly created switch stacks.
• Reconnect them to the original switch stack through their stack ports.
• Power on the switches.
For cabling and power considerations that affect switch stacks, see the Catalyst 2960-XR Switch Hardware
Installation Guide.
Related Topics
Assigning a Stack Member Number, on page 18
Switch Stack Configuration Scenarios, on page 26
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 5
Managing Switch Stacks
Stack Member Priority Values
• If you manually change the stack member number by using the switch current-stack-member-number
renumber new-stack-member-number command, the new number goes into effect after that stack
member resets (or after you use the reload slot stack-member-number privileged EXEC command) and
only if that number is not already assigned to any other members in the stack. Another way to change
the stack member number is by changing the Switch_NUMBER environment variable.
If the number is being used by another member in the stack, the Switch selects the lowest available
number in the stack.
If you manually change the number of a stack member and no interface-level configuration is associated
with that new member number, that stack member resets to its default configuration.
You cannot use the switch current-stack-member-number renumber new-stack-member-number
command on a provisioned Switch. If you do, the command is rejected.
• If you move a stack member to a different Switch stack, the stack member retains its number only if the
number is not being used by another member in the stack. If it is being used, the Switch selects the
lowest available number in the stack.
• If you merge Switch stacks, the Switch that join the Switch stack of a new stack master select the lowest
available numbers in the stack.
As described in the hardware installation guide, you can use the Switch port LEDs in Stack mode to visually
determine the stack member number of each stack member.
Related Topics
Assigning a Stack Member Number, on page 18
Switch Stack Configuration Scenarios, on page 26
Note We recommend assigning the highest priority value to the switch that you prefer to be the stack master.
This ensures that the switch is reelected as the stack master if a reelection occurs.
To change the priority value for a stack member, use the switch stack-member-number priority new
priority-value command. For more information, see the “Setting the Stack Member Priority Value” section.
The new priority value takes effect immediately but does not affect the current stack master. The new priority
value helps determine which stack member is elected as the new stack master when the current stack master
or the switch stack resets.
Related Topics
Setting the Stack Member Priority Value, on page 20
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
6 OL-32581-01
Managing Switch Stacks
Switch Stack Bridge ID and MAC Address
Related Topics
Enabling the Persistent MAC Address Feature, on page 16
Enabling the Persistent MAC Address Feature: Example, on page 28
Note We recommend assigning the highest priority value to the switch that you prefer to be the stack master.
This ensures that the switch is reelected as stack master if a reelection occurs.
A stack master retains its role unless one of these events occurs:
• The switch stack is reset.*
• The stack master is removed from the switch stack.
• The stack master is reset or powered off.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 7
Managing Switch Stacks
Switch Stack Configuration Files
In the events marked by an asterisk (*), the current stack master might be reelected based on the listed factors.
When you power on or reset an entire switch stack, some stack members might not participate in the stack
master election. 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 become stack members. All stack
members participate in reelections. For all powering considerations that affect stack-master elections, see the
“Switch Installation” chapter in the hardware installation guide.
The new stack master becomes available after a few seconds. In the meantime, the switch stack uses the
forwarding tables in memory to minimize network disruption. The physical interfaces on the other available
stack members are not affected during a new stack master election and reset.
After a new stack master is elected and the previous stack master becomes available, the previous stack master
does not resume its role as stack master.
For all powering considerations that affect stack-master elections, see the Catalyst 2960-XR Switch Hardware
Installation Guide.
Note The interface-specific settings of the stack master are saved if the stack master is replaced without saving
the running configuration to the startup configuration.
A new, out-of-box switch joining a switch stack uses the system-level settings of that switch stack. If a switch
is moved to a different switch stack before it is powered on, that switch loses its saved configuration file and
uses the system-level configuration of the new switch stack. If the switch is powered on as a standalone switch
before it joins the new switch stack, the stack will reload. When the stack reloads, the new switch may become
the stack master, retain its configuration and overwrite the configuration files of the other stack members.
The interface-specific configuration of each stack member is associated with the stack member number. Stack
members retain their numbers unless they are manually changed or they are already used by another member
in the same switch stack. If the stack member number changes, the new number goes into effect after that
stack member resets.
• If an interface-specific configuration does not exist for that member number, the stack member uses its
default interface-specific configuration.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
8 OL-32581-01
Managing Switch Stacks
Offline Configuration to Provision a Stack Member
• If an interface-specific configuration exists for that member number, the stack member uses the
interface-specific configuration associated with that member number.
If you replace a failed member with an identical model, the replacement member automatically uses the same
interface-specific configuration as the failed switch. You do not need to reconfigure the interface settings.
The replacement switch (referred to as the provisioned switch) must have the same stack member number as
the failed switch.
You back up and restore the stack configuration in the same way as you would for a standalone switch
configuration.
Related Topics
Assigning a Stack Member Number, on page 18
Switch Stack Configuration Scenarios, on page 26
Related Topics
Provisioning a New Member for a Switch Stack, on page 21
Removing Provisioned Switch Information, on page 22
Provisioning a New Member for a Switch Stack: Example, on page 29
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 9
Managing Switch Stacks
Offline Configuration to Provision a Stack Member
Table 1: Results of Comparing the Provisioned Configuration with the Provisioned Switch
Scenario Result
The stack member numbers and the The switch stack applies the
1 If the stack member number of
Switch types match. provisioned configuration to the
the provisioned switch matches provisioned switch and adds it to
the stack member number in the the stack.
provisioned configuration on
the stack, and
2 If the Switch type of the
provisioned switch matches the
Switch type in the provisioned
configuration on the stack.
The stack member numbers match The switch stack applies the default
1 If the stack member number of
but the Switch types do not match. configuration to the provisioned
the provisioned switch matches switch and adds it to the stack.
the stack member number in the
provisioned configuration on The provisioned configuration is
the stack, but changed to reflect the new
information.
2 The Switch type of the
provisioned switch does not
match the Switch type in the
provisioned configuration on
the stack.
The stack member number is not The switch stack applies the default
found in the provisioned configuration to the provisioned
configuration. switch and adds it to the stack.
The provisioned configuration is
changed to reflect the new
information.
The stack member number of the The switch stack applies the default
provisioned switch is not found in configuration to the provisioned
the provisioned configuration. switch and adds it to the stack.
If you add a provisioned switch that is a different type than specified in the provisioned configuration to a
powered-down switch stack and then apply power, the switch stack rejects the (now incorrect) switch
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
10 OL-32581-01
Managing Switch Stacks
Stack Protocol Version
stack-member-number provision type global configuration command in the startup configuration file. However,
during stack initialization, the nondefault interface configuration information in the startup configuration file
for the provisioned interfaces (potentially of the wrong type) is executed. Depending on the differences between
the actual Switch type and the previously provisioned switch type, some commands are rejected, and some
commands are accepted.
Note If the switch stack does not contain a provisioned configuration for a new Switch, the Switch joins the
stack with the default interface configuration. The switch stack then adds to its running configuration with
a switch stack-member-number provision type global configuration command that matches the new
Switch. For configuration information, see the Provisioning a New Member for a Switch Stack section.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 11
Managing Switch Stacks
Stack Protocol Version
Auto-Upgrade
The purpose of the auto-upgrade feature is to allow a switch to be upgraded to a compatible software image,
so that the switch can join the switch stack.
When a new switch attempts to join a switch stack, each stack member performs compatibility checks with
itself and the new switch. Each stack member sends the results of the compatibility checks to the stack master,
which uses the results to determine whether the switch can join the switch stack. If the software on the new
switch is incompatible with the switch stack, the new switch enters version-mismatch (VM) mode.
If the auto-upgrade feature is enabled on the new switch, the stack master automatically upgrades the new
switch with the same software image running on a compatible stack member. Auto-upgrade starts a few
minutes after the mismatched software is detected before starting.
By default, auto-upgrade is enabled (the boot auto-copy-sw global configuration command is enabled). You
can disable auto-upgrade by using the no boot auto-copy-sw global configuration command on the stack
master. You can check the status of auto-upgrade by using the show boot privileged EXEC command and by
checking the Auto upgrade line in the display.
Auto-upgrade includes an auto-copy process and an auto-extract process.
• Auto-copy automatically copies the software image running on any stack member to the new switch to
automatically upgrade it. Auto-copy occurs if auto-upgrade is enabled, if there is enough flash memory
in the new switch, and if the software image running on the switch stack is suitable for the new switch.
Note A switch in VM mode might not run all released software. For example, new switch
hardware is not recognized in earlier versions of software.
• Automatic extraction (auto-extract) occurs when the auto-upgrade process cannot find the appropriate
software in the stack to copy to the new switch. In that case, the auto-extract process searches all switches
in the stack for the tar file needed to upgrade the switch stack or the new switch. The tar file can be in
any flash file system in the switch stack or in the new switch. If a tar file suitable for the new switch is
found on a stack member, the process extracts the file and automatically upgrades the new switch.
The auto-upgrade (auto-copy and auto-extract) processes start a few minutes after the mismatched software
is detected.
When the auto-upgrade process is complete, the new switch reloads and joins the stack as a fully functioning
member. If you have both stack cables connected during the reload, network downtime does not occur because
the switch stack operates on two rings.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
12 OL-32581-01
Managing Switch Stacks
Stack Protocol Version
Auto-Advise
Automatic advise (auto-advise) occurs when the auto-upgrade process cannot find appropriate stack member
software to copy to the new switch. This process tells you the command (archive copy-sw or archive
download-sw privileged EXEC command) and the image name (tar filename) needed to manually upgrade
the switch stack or the new switch. The recommended image can be the running switch stack image or a tar
file in any flash file system in the switch stack (including the new switch). If an appropriate image is not found
in the stack flash file systems, the auto-advise process tells you to install new software on the switch stack.
Auto-advise cannot be disabled, and there is no command to check its status.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 13
Managing Switch Stacks
Stack Protocol Version
(450 bytes)
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:extracting info (104 bytes)
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:Installing
(renaming):`flash1:update/c2960x-universalk9-mz.150-2.EX1' ->
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW: `flash1:c2960x-universalk9-mz.150-2.EX1'
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:New software image installed in
flash1:c2960x-universalk9-mz.150-2.EX1
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:Removing old
image:flash1:c2960x-universalk9-mz.150-2.EX1
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:All software images installed.
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:Requested system reload in progress...
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:Software successfully copied to
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:system(s) 1
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:Done copying software
*Mar 11 20:36:15.038:%IMAGEMGR-6-AUTO_COPY_SW:Reloading system(s) 1
This example shows that the switch stack detected a new switch that is running a different minor version
number than the switch stack. Auto-copy starts but cannot find software in the switch stack to copy to the
VM-mode switch to make it compatible with the switch stack. The auto-advise process starts and recommends
that you download a tar file from the network to the switch in VM mode:
*Mar 1 00:01:11.319:%STACKMGR-6-STACK_LINK_CHANGE:Stack Port 2 Switch 2 has changed to state
UP
*Mar 1 00:01:15.547:%STACKMGR-6-SWITCH_ADDED_VM:Switch 1 has been ADDED to the stack
(VERSION_MISMATCH)
stack_2#
*Mar 1 00:03:15.554:%IMAGEMGR-6-AUTO_COPY_SW_INITIATED:Auto-copy-software process initiated
for switch number(s) 1
*Mar 1 00:03:15.554:%IMAGEMGR-6-AUTO_COPY_SW:
*Mar 1 00:03:15.554:%IMAGEMGR-6-AUTO_COPY_SW:Searching for stack member to act
*Mar 1 00:03:15.554:%IMAGEMGR-6-AUTO_COPY_SW:as software donor...
*Mar 1 00:03:15.554:%IMAGEMGR-6-AUTO_COPY_SW:Software was not copied
*Mar 1 00:03:15.562:%IMAGEMGR-6-AUTO_ADVISE_SW_INITIATED:Auto-advise-software process
initiated for switch number(s) 1
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:Systems with incompatible software
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:have been added to the stack. The
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:storage devices on all of the stack
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:members have been scanned, and it has
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:been determined that the stack can be
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:repaired by issuing the following
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:command(s):
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW: archive download-sw /force-reload /overwrite
/dest 1 flash1:c2960x-universalk9-mz.150-2.EX1.tar
*Mar 1 00:04:22.537:%IMAGEMGR-6-AUTO_ADVISE_SW:
Note Auto-advise and auto-copy identify which images are running by examining the info file and by searching
the directory structure on the switch stack. If you download your image by using the copy tftp: boot loader
command instead of the archive download-sw privileged EXEC command, the proper directory structure
is not created. For more information about the info file, see the Catalyst 2960-XR Switch Managing Cisco
IOS Image Files Configuration Guide.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
14 OL-32581-01
Managing Switch Stacks
SDM Template Mismatch in Switch Stacks
Related Topics
Accessing the CLI of a Specific Member, on page 23
Note Stack members retain their IP addresses when you remove them from a switch stack. To avoid a conflict
by having two devices with the same IP address in your network, change the IP addresses of any Switch
that you remove from the switch stack.
For related information about switch stack configurations, see the Switch Stack Configuration Files section.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 15
Managing Switch Stacks
How to Configure a Switch Stack
Connectivity to the Switch Stack Through Console Ports or Ethernet Management Ports
You can connect to the stack master by using one of these methods:
• You can connect a terminal or a PC to the stack master through the console port of one or more stack
members.
• You can connect a PC to the stack master through the Ethernet management ports of one or more stack
members. For more information about connecting to the switch stack through Ethernet management
ports, see the Using the Ethernet Management Port section.
Be careful when using multiple CLI sessions to the stack master. Commands that you enter in one session are
not displayed in the other sessions. Therefore, it is possible that you might not be able to identify the session
from which you entered a command.
We recommend using only one CLI session when managing the switch stack.
Note When you enter the command to configure this feature, a warning message appears with the consequences
of your configuration. You should use this feature cautiously. Using the old stack master MAC address
elsewhere in the same domain could result in lost traffic.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
16 OL-32581-01
Managing Switch Stacks
Enabling the Persistent MAC Address Feature
SUMMARY STEPS
1. enable
2. configure terminal
3. stack-mac persistent timer [0 | time-value]
4. end
5. copy running-config startup-config
DETAILED STEPS
Example:
Switch> enable
Example:
Switch# configure terminal
Step 3 stack-mac persistent timer [0 | Enables a time delay after a stack-master change before the stack MAC address
time-value] changes to that of the new stack master. If the previous stack master rejoins the
stack during this period, the stack uses that MAC address as the stack MAC address.
Example: You can configure the time period as 0 to 60 minutes.
Switch(config)# stack-mac
persistent timer 7 • Enter the command with no value to set the default delay of approximately 4
minutes. We recommend that you always enter a value.
If the command is entered without a value, the time delay appears in the
running-config file with an explicit timer value of 4 minutes.
• Enter 0 to continue using the MAC address of the current stack master
indefinitely.
The stack MAC address of the previous stack master is used until you enter
the no stack-mac persistent timer command, which immediately changes
the stack MAC address to that of the current stack master.
• Enter a time-value from 1 to 60 minutes to configure the time period before
the stack MAC address changes to the new stack master.
The stack MAC address of the previous stack master is used until the
configured time period expires or until you enter the no stack-mac persistent
timer command.
Note If you enter the no stack-mac persistent timer command after a new stack
master takes over, before the time expires, the switch stack moves to the
current stack master MAC address.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 17
Managing Switch Stacks
Assigning a Stack Member Number
Example:
Switch(config)# end
Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config
startup-config
What to Do Next
Use the no stack-mac persistent timer global configuration command to disable the persistent MAC address
feature.
Related Topics
Persistent MAC Address on the Switch Stack, on page 7
Enabling the Persistent MAC Address Feature: Example, on page 28
SUMMARY STEPS
1. enable
2. configure terminal
3. switch current-stack-member-number renumber new-stack-member-number
4. end
5. reload slot stack-member-number
6. show switch
7. copy running-config startup-config
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
18 OL-32581-01
Managing Switch Stacks
Assigning a Stack Member Number
DETAILED STEPS
Example:
Switch# configure terminal
Step 3 switch current-stack-member-number renumber Specifies the current stack member number and the new
new-stack-member-number stack member number for the stack member. The range is
1 to 8.
Example: You can display the current stack member number by using
Switch(config)# switch 3 renumber 4
the show switch user EXEC command.
Example:
Switch(config)# end
Example:
Switch# reload slot 4
Example:
showSwitch
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config startup-config
Related Topics
Changes to Switch Stack Membership, on page 4
Stack Member Numbers, on page 5
Switch Stack Configuration Files, on page 8
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 19
Managing Switch Stacks
Setting the Stack Member Priority Value
SUMMARY STEPS
1. enable
2. configure terminal
3. switch stack-member-number priority new-priority-number
4. end
5. show switch stack-member-number
6. copy running-config startup-config
DETAILED STEPS
Example:
Switch> enable
Example:
Switch# configure terminal
Step 3 switch stack-member-number priority Specifies the stack member number and the new priority for the
new-priority-number stack member. The stack member number range is 1 to 8. The
priority value range is 1 to 15.
Example: You can display the current priority value by using the show switch
Switch(config)# switch 3 priority 2
user EXEC command.
The new priority value takes effect immediately but does not affect
the current stack master. The new priority value helps determine
which stack member is elected as the new stack master when the
current stack master or switch stack resets.
Example:
Switch(config)# end
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
20 OL-32581-01
Managing Switch Stacks
Provisioning a New Member for a Switch Stack
Example:
Switch(config)# show switch
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config
startup-config
Related Topics
Stack Member Priority Values, on page 6
SUMMARY STEPS
1. show switch
2. configure terminal
3. switch stack-member-number provision type
4. end
5. copy running-config startup-config
DETAILED STEPS
Example:
Switch# show switch
Example:
Switch# configure terminal
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 21
Managing Switch Stacks
Removing Provisioned Switch Information
Example:
Switch(config)# end
Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config startup-config
Related Topics
Offline Configuration to Provision a Stack Member , on page 9
Provisioning a New Member for a Switch Stack: Example, on page 29
SUMMARY STEPS
1. configure terminal
2. no switch stack-member-number provision
3. end
4. copy running-config startup-config
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
22 OL-32581-01
Managing Switch Stacks
Troubleshooting the Switch Stack
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 no switch stack-member-number provision Removes the provisioning information for the
specified member.
Example:
Switch(config)# no switch 3 provision
Example:
Switch(config)# end
Step 4 copy running-config startup-config (Optional) Saves your entries in the configuration
file.
Example:
Switch# copy running-config startup-config
and want to remove the provisioned information and to avoid receiving an error message, you can remove
power from stack member 3, disconnect the stack cables between the stack member 3 and switches to which
it is connected, reconnect the cables between the remaining stack members, and enter the no switch
stack-member-number provision global configuration command.
Related Topics
Offline Configuration to Provision a Stack Member , on page 9
Provisioning a New Member for a Switch Stack: Example, on page 29
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 23
Managing Switch Stacks
Temporarily Disabling a Stack Port
You can access all or specific members by using the remote command {all | stack-member-number} privileged
EXEC command. The stack member number range is 1 to 8.
You can access specific members by using the session stack-member-number privileged EXEC command.
The member number is appended to the system prompt. For example, the prompt for member 2 is Switch-2#,
and system prompt for the stack master is Switch#. Enter exit to return to the CLI session on the stack master.
Only the show and debug commands are available on a specific member.
Related Topics
Connectivity to Specific Stack Members, on page 15
Note Be careful when using the switch stack-member-number stack port port-number disable command. When
you disable the stack port, the stack operates at half bandwidth.
A stack is in the full-ring state when all members are connected through the stack ports and are in the ready
state.
The stack is in the partial-ring state when the following occurs:
• All members are connected through their stack ports but some are not in the ready state.
• Some members are not connected through the stack ports.
SUMMARY STEPS
DETAILED STEPS
Example:
Switch# switch 2 stack port 1 disable
Step 2 switch stack-member-number stack port port-number enable Reenables the stack port.
Example:
Switch# switch 2 stack port 1 enable
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
24 OL-32581-01
Managing Switch Stacks
Reenabling a Stack Port While Another Member Starts
When you disable a stack port and the stack is in the full-ring state, you can disable only one stack port. This
message appears:
Enabling/disabling a stack port may cause undesired stack changes. Continue?[confirm]
When you disable a stack port and the stack is in the partial-ring state, you cannot disable the port. This
message appears:
Disabling stack port not allowed with current stack configuration.
Step 1 Disconnect the stack cable between Port 1 on Switch 1 and Port 2 on Switch 4.
Step 2 Remove Switch 4 from the stack.
Step 3 Add a switch to replace Switch 4 and assign it switch-number 4.
Step 4 Reconnect the cable between Port 1 on Switch 1 and Port 2 on Switch 4 (the replacement switch).
Step 5 Reenable the link between the switches. Enter the switch 1 stack port 1 enable privileged EXEC command to enable
Port 1 on Switch 1.
Step 6 Power on Switch 4.
Caution Powering on Switch 4 before enabling the Port 1 on Switch 1 might cause one of the switches to reload.
If Switch 4 is powered on first, you might need to enter the switch 1 stack port 1 enable and the switch
4 stack port 2 enable privileged EXEC commands to bring up the link.
Command Description
show controller ethernet-controller stack port {1 Displays stack port counters (or per-interface and
| 2} per-stack port send and receive statistics read from
the hardware).
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 25
Managing Switch Stacks
Configuration Examples for Switch Stacks
Command Description
show controller ethernet-controller fastethernet0 Displays information about the Ethernet management
port, including the port status and the per-interface
send and receive statistics read from the hardware.
show platform stack manager all Displays all stack manager information, such as the
stack protocol version.
show platform stack passive-links Displays information about stack passive links.
Scenario Result
Stack master election specifically Connect two powered-on switch Only one of the two stack masters
determined by existing stack stacks through the stack ports. becomes the new stack master.
masters
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
26 OL-32581-01
Managing Switch Stacks
Switch Stack Configuration Scenarios
Scenario Result
Stack master election specifically The stack member with the higher
1 Connect two switches through
determined by the stack member priority value is elected stack
their stack ports.
priority value master.
2 Use the switch
stack-member-number priority
new-priority-number global
configuration command to set
one stack member with a higher
member priority value.
3 Restart both stack members at
the same time.
Stack master election specifically Assuming that both stack members The stack member with the saved
determined by the configuration have the same priority value: configuration file is elected stack
file master.
1 Make sure that one stack
member has a default
configuration and that the other
stack member has a saved
(nondefault) configuration file.
2 Restart both stack members at
the same time.
Stack master election specifically Assuming that both stack members The stack member with the lower
determined by the MAC address have the same priority value, MAC address is elected stack
configuration file, and feature set, master.
restart both stack members at the
same time.
Stack member number conflict Assuming that one stack member The stack member with the higher
has a higher priority value than the priority value retains its stack
other stack member: member number. The other stack
member has a new stack member
1 Ensure that both stack members
number.
have the same stack member
number. If necessary, use the
switch
current-stack-member-number
renumber
new-stack-member-number
global configuration command.
2 Restart both stack members at
the same time.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 27
Managing Switch Stacks
Enabling the Persistent MAC Address Feature: Example
Scenario Result
Add a stack member The stack master is retained. The
1 Power off the new switch.
new switch is added to the switch
2 Through their stack ports, stack.
connect the new switch to a
powered-on switch stack.
3 Power on the new switch.
Stack master failure Remove (or power off) the stack One of the remaining stack
master. members becomes the new stack
master. All other stack members in
the stack remain as stack members
and do not reboot.
Add more than eight stack Two switch become stack masters.
1 Through their stack ports,
members One stack master has eight stack
connect nine switch. members. The other stack master
2 Power on all switch. remains as a standalone switch.
Use the Mode button and port
LEDs on the switch to identify
which switch are stack masters and
which switch belong to each stack
master.
Related Topics
Assigning a Stack Member Number, on page 18
Changes to Switch Stack Membership, on page 4
Stack Member Numbers, on page 5
Switch Stack Configuration Files, on page 8
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
28 OL-32581-01
Managing Switch Stacks
Provisioning a New Member for a Switch Stack: Example
Related Topics
Enabling the Persistent MAC Address Feature, on page 16
Persistent MAC Address on the Switch Stack, on page 7
Related Topics
Provisioning a New Member for a Switch Stack, on page 21
Removing Provisioned Switch Information, on page 22
Offline Configuration to Provision a Stack Member , on page 9
Description Link
To help you research and resolve system error https://www.cisco.com/cgi-bin/Support/Errordecoder/
messages in this release, use the Error Message index.cgi
Decoder tool.
Standard/RFC Title
None —
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
OL-32581-01 29
Managing Switch Stacks
Feature History and Information for Switch Stacks
MIBs
Technical Assistance
Description Link
The Cisco Support website provides extensive online http://www.cisco.com/support
resources, including documentation and tools for
troubleshooting and resolving technical issues with
Cisco products and technologies.
To receive security and technical information about
your products, you can subscribe to various services,
such as the Product Alert Tool (accessed from Field
Notices), the Cisco Technical Services Newsletter,
and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website
requires a Cisco.com user ID and password.
Stack Manager Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-XR Switch)
30 OL-32581-01