Toolpack Installation:Change hostname

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Formatting changes)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Change hostname  ==
+
{{DISPLAYTITLE:Change Hostname}}
 +
__TOC__
  
This procedure applies to TMG800, TMG3200 and TMG7800 with static IP for management interfaces.  
+
This procedure applies to [[TMG800]], [[TMG3200]], [[TMG7800]] and [[ProSBC]] with static IP for management interfaces. <br>
Require Version rel2.9 and above
+
Requires version 2.9 and above <br>
 +
'''Note''': For [[ProSBC]], this will require a license update. Make sure you inform the [[Support:Contacting_TelcoBridges_technical_support|Support]] team that this procedure will be done. <br>
  
*ssh to the Centos host:
+
== CentOS 7 procedure ==
*Do shell command "hostname" to show the current hostname
+
*[[Accessing_Device#SSH|ssh]] to the management interface
<pre>
+
*To view current hostname:
hostname
+
hostnamectl
</pre>
+
*To update the hostname:
 +
hostnamectl  set-hostname  NewHostName
 +
*To update the /etc/hosts file:
 +
vim /etc/hosts
 +
Replace the hostnames in the file
 +
*Reboot server:
 +
shutdown -r now
 +
*After reboot verify if everything is ok:
 +
hostnamectl
 +
cat /etc/hosts
  
*Change to the new name:
+
=== ProSBC license ===
<pre>hostname NewHostName
+
For [[ProSBC]], you can then update the license: [[Toolpack:Retreiving_a_License_TSBC_A|Update ProSBC license]]
</pre>
+
  
*Restart toolpack:
+
== CentOS 5 procedure ==
<pre>tbtoolpack stop
+
*[[Accessing_Device#SSH|ssh]] to the management interface
tbtoolpack start
+
*To view current hostname:
</pre>
+
hostname
 +
*To update the hostname:
 +
hostname NewHostName
 +
*Reboot server:
 +
shutdown -r now
 +
 
 +
Note: DO NOT change the hostname via webportal.

Latest revision as of 12:17, 11 March 2021

Contents


This procedure applies to TMG800, TMG3200, TMG7800 and ProSBC with static IP for management interfaces.
Requires version 2.9 and above
Note: For ProSBC, this will require a license update. Make sure you inform the Support team that this procedure will be done.

CentOS 7 procedure

  • ssh to the management interface
  • To view current hostname:
hostnamectl
  • To update the hostname:
hostnamectl  set-hostname   NewHostName
  • To update the /etc/hosts file:
vim /etc/hosts

Replace the hostnames in the file

  • Reboot server:
shutdown -r now
  • After reboot verify if everything is ok:
hostnamectl
cat /etc/hosts

ProSBC license

For ProSBC, you can then update the license: Update ProSBC license

CentOS 5 procedure

  • ssh to the management interface
  • To view current hostname:
hostname
  • To update the hostname:
hostname NewHostName
  • Reboot server:
shutdown -r now

Note: DO NOT change the hostname via webportal.

Personal tools