Difference between revisions of "CLI - Hostname"

m (Kang님이 호스트 이름 설정 문서를 CLI - 호스트 이름 설정 문서로 이동했습니다)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
호스트 이름 설정은 configure 명령어에서 설정할 수 있습니다.
+
The Hostname is changed in the configuration mode and you can see the current hostname using the <code>show system hostname</code> command. <br>
 +
If you change the hostname to another, the prompt is changed to the new hostname.
 
<pre>
 
<pre>
 +
LYSH@MyHostName# show system hostname
 +
Hostname                      : MyHostName
 +
 
LYSH@MyHostName# configure
 
LYSH@MyHostName# configure
configure# hostname set -h
+
LYSH@MyHostName(config)# hostname set NewHostName
usage: hostname set [-h] name
+
LYSH@NewHostName# show system hostname
 
+
Hostname                      : NewHostName
positional arguments:
 
  name        hostname
 
  
optional arguments:
 
  -h, --help  show this help message and exit
 
 
</pre>
 
</pre>
=== Basic Commands ===
 
* <code>configure# hostname set MyHostName</code> 호스트 이름을 설정합니다.
 

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