Naming a Stack Unit

You can assign names to stack units to help identify them. Stack unit names can be up to 63 characters long. A stack unit name must start with an alpha character and must not contain spaces.
Perform these steps to assign a name to one or more stack members.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter the stack unit command followed by the number of the stack unit you want to name.
    device(config)# stack unit 1
    
    The device enters stack unit configuration mode.
  3. Enter the unit-name command followed by the name that you want to represent the unit in configuration output.
    device(config-unit-1)# unit-name operations
    
    The example assigns the name operations to stack unit 1.
  4. (Optional) Repeat steps 2 and 3 as many times as needed.
    device(config-unit-1)# stack unit 2
    device(config-unit-2)# unit-name engineering
    
    The example enters stack unit configuration mode for unit 2 and assigns the name engineering to the unit.
  5. When you are finished naming units, enter the write memory command in Privileged Exec mode to save the configuration.
    device(config-unit-2)# end
    device# write memory
    

The following example assigns names to the members of a three-unit stack, based on the building they support.

device# configure terminal
device(config)# stack unit 1
device(config-unit-1)# unit-name building1
device(config-unit-1)# stack unit 2
device(config-unit-2)# unit-name building2
device(config-unit-2)# end
device# write memory

Automatic copy to member units:  2
Flash Memory Write (8192 bytes per dot) 
.
Copy Done.

ICX7850-32Q Router# show running-config
Current configuration:
!
ver 09.0.00
!
stack unit 1
  unit-name building1
  module 1 icx7850-32q-port-management-module
  module 2 icx7800-100g-12port-1200g-module
  module 3 icx7800-100g-8port-800g-module
  stack-trunk ethernet 1/3/1 to 1/3/4
  stack-trunk ethernet 1/3/5 to 1/3/8
stack unit 2
  unit-name building2
  module 1 icx7850-48fs-port-management-module
  module 2 icx7800-100g-8port-800g-module
  stack-trunk ethernet 2/2/1 to 2/2/4
  stack-trunk ethernet 2/2/5 to 2/2/8
stack enable
stack mac d4c1.9e18.3731
!
!
aaa authentication web-server default local
aaa authentication login default local
enable aaa console
!
no telnet server
username super password .....
!
!
hitless-failover enable
!
!
sz registrar
!
!
end