Hostname

 

-         you must be in config mode first !!

          

To rename the router (change the "Hostname") :

 

hostname hostname   - for example, “hostname Router1”

 

to see the what the current hostname is :         

 

sh host   or   sh hosts