The Cisco IOS hostname command assigns a human-readable name to a device. Configure it in global configuration mode; the prompt changes immediately to reflect the new name. Unique names make devices easier to identify during administration and troubleshooting. section 5.2.2
Assigning a device name
Router# configure terminal Router(config)# hostname R1 R1(config)# The command changes Router to R1 immediately. In an enterprise, a name such as Office1_R1 can include the device location. To undo the setting, enter no hostname R1. section 5.2.2
Router(config)# hostname R1 #1 R1(config)# #2 #1 Changes the device’s hostname #2 The prompt immediately changes to reflect the new hostname.
View the command and the prompt transition that confirms the hostname changed. section 5.2.2
