Configuring the Host Name

In addition to the system passwords and enable password, your initial configuration should include the host name to make it easier to configure and troubleshoot the switch router. To configure the host name, use the following steps beginning in enable mode:

 

Command Purpose

Step 1 

Router#configure terminal

Router#

Enters global configuration mode.

Step 2 

Router# hostname name-string

Enters a system name. In this example, we set the hostname to "Router."

Step 3 

Router# end

Router(config)#

Returns to privileged EXEC mode.

Step 4 

Router(config)# copy running-config startup-config

Copies your configuration changes to NVRAM.