Set Device Hostname and Admin User Password

The ICLI has several different modes. The current mode is called exec mode; it allows the user to perform operations related to configuration files, reloading defaults, displaying system information, etc., but it does not allow the user to change detailed configuration items. Such operations are performed while in the config mode. To set the device hostname, first change to configuration mode by typing configure terminal and press Enter, then type hostname my-device and press Enter, where my-device is a suitable name for the device. Finally, type exit and press Enter. The sequence should appear as shown here.

# configure terminal
(config)# hostname my-device
my-device(config)# exit
my-device#

The commands are executed immediately, so hostname changes the device hostname right away. A password should be set for the admin user.

my-device# configure terminal
my-device(config)# username admin privilege 15 password unencrypted verysecret
my-device(config)# exit
my-device#

The user, admin, now has the password “very-secret.” Other users can be added in similar fashion.

Last updated