Actions

Toolpack Installation:Change hostname: Difference between revisions

No edit summary
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.  
Requires version 2.9 and above
Requires version 2.9 and above


*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:
For Centos 7, the hostname command is
hostnamectl  set-hostname  NewHostName
<pre>  
*To update the /etc/hosts file:
hostnamectl
vim /etc/hosts
</pre>
Replace the hostnames in the file
 
*Reboot server:
*Change to the new name:
shutdown -r now
<pre>
*After reboot verify if everything is ok:
hostname NewHostName
hostnamectl
</pre>
cat /etc/hosts
For CentOS 7,
<pre>
hostnamectl  set-hostname  NewHostName
</pre>
 
*Restart toolpack:
<pre>tbtoolpack stop
tbtoolpack start
</pre>
For TMG7800 CentOS 7, do reboot host, and after reboot host, if you notice
/etc/hosts
is still has the old name, perform a manual change of NewHostName for this file /etc/hosts, followed by a reboot host.


== CentOS 5 procedure ==
*[[Accessing_Device#SSH|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.
Note: DO NOT change the hostname via webportal.

Revision as of 13:08, 11 March 2021

This procedure applies to TMG800, TMG3200, TMG7800 and ProSBC with static IP for management interfaces. Requires version 2.9 and above

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

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.