Hostname is the name of the router. It’s up to us what we name it. It’s like giving a name to our own systems. If we are using a command line interface to access the router or switch, then we can see the current name of the device before the prompt.

hostname

 

To change the name of the Cisco device, follow the commands given below:

Houston>enable
Password:
Houston#configure terminal
Houston(config)#hostname Certhacker
Certhacker(config)#

You can see that the router name has changed from Houston to Certhacker.