hostname

To set the hostname of the system, use the hostname command in Configuration mode. To delete the hostname from the system, use the no form of this command, which resets the system to localhost.

hostname word

Syntax Description

hostname

The command to configure the hostname.

word

Name of the host. Contains at least 2 to 64 alphanumeric characters and an underscore ( _ ). The hostname must begin with a character that is not a space.

Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

A single instance type of command, hostname only occurs once in the configuration of the system. The hostname must contain one argument; otherwise, an error occurs.

Examples

/admin(config)# hostname cda-1

Changing the hostname or IP may result in undesired side effects,

such as installed application(s) being restarted.

Are you sure you want to proceed? [y/n] y

.

.

.

cda-1/admin#