Difference between revisions of "CLI - Hostname"

 
Line 6: Line 6:
  
 
LYSH@MyHostName# configure
 
LYSH@MyHostName# configure
configure# hostname set NewHostName
+
LYSH@MyHostName(config)# hostname set NewHostName
 
LYSH@NewHostName# show system hostname
 
LYSH@NewHostName# show system hostname
 
Hostname                      : NewHostName
 
Hostname                      : NewHostName
  
 
</pre>
 
</pre>

Latest revision as of 10:46, 28 January 2022

The Hostname is changed in the configuration mode and you can see the current hostname using the show system hostname command.
If you change the hostname to another, the prompt is changed to the new hostname.

LYSH@MyHostName# show system hostname
Hostname                      : MyHostName

LYSH@MyHostName# configure
LYSH@MyHostName(config)# hostname set NewHostName
LYSH@NewHostName# show system hostname
Hostname                      : NewHostName