A host name is a label that is given to a device to distinguish it from other devices. The default device name for a Series 300 Switch is "switch" combined with the last 6 characters of the MAC address for the device. The device host name shows up in the command prompt after every command, and it might be more meaningful to assign a different name to distinguish this device from other devices while using the command line interface.
This document explains how to assign the device host name to a 300 Series Switch using the Command Line Interface.
• 300 Series Switches
Note: Changing the device host name requires user privilege level 15.
Step 1. Using the command prompt, enter telnet 192.168.1.254 to access the command line interface for this device on the default IP address.
Step 2. Enter the User Name and Password.
Note: The default User Name is cisco and the default Password is cisco.
Step 3. Enter config to enter Global Configuration mode.
Step 4. To modify the device host name, there are two options:
• Enter hostname [name] to assign a new hostname to the device.
Note: The name must start with a letter, end with a letter or digit, and can only contain letters, numbers, and hyphens.
• Enter no hostname to restore the host name back to the default.
Step 5. Enter exit to exit Global Configuration mode.
Step 6. (Optional) Any settings changed will be lost if the switch loses power. To make the changes permanent enter copy running-config startup-config and enter Yes to copy the current configuration file to the startup configuration file.
Step 7. Enter exit again to end the session.
Revision | Publish Date | Comments |
---|---|---|
1.0 |
13-Dec-2018 |
Initial Release |