hostname (Cisco Command)

The hostname command defines the name of the device. This is the name displayed (among other places) in the command prompt, and in the CDP neighbors list of other devices.


cisco> enable
cisco# configure terminal
cisco(config)# hostname router-5

Juniper Equivalent

The Juniper equivalent of the hostname command is:

[email protected]# set system hostname <HOSTNAME>

See also