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.

Example:

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

Juniper Equivalent

The Juniper equivalent of the hostname command is:

[email protected]# set system hostname <HOSTNAME>

See also