FreeKB - Cisco IOS Hostname
Cisco IOS - Hostname

Follow these directions to assign a hostname to a Cisco switch in IOS.

  1. In IOS, type enable and press enter
  2. Type configure terminal and press enter
  3. Type hostname name enter (example: hostname sw1)
  4. Type exit and press enter

Use the show running-config to verify that the hostname has changed.

The reload command can be used to return the switch to the configuration it had before any changes were made.

To ensure these changes remain saved if the switch is restarted, save the changes to the startup-config. Type copy running-config startup-config and press enter. This saves to NVRAM. To ensure the startup-config contains the new hostname, use the show startup-config command. It is also possible to save the changes to flash using the copy startup-config flash command. Then use the show flash command, and the startup-config file should be listed.

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 0abaa in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |