Toolpack Installation:Change hostname

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Change hostname)
m (Change hostname)
Line 29: Line 29:
 
For TMG7800 CentOS 7, do reboot host, and after reboot host, if you notice
 
For TMG7800 CentOS 7, do reboot host, and after reboot host, if you notice
 
/etc/hosts
 
/etc/hosts
is still has theh old name, perform a manual change of NewHostName for this file /etc/hosts, followed by a reboot host.
+
is still has the old name, perform a manual change of NewHostName for this file /etc/hosts, followed by a reboot host.
  
  
 
Note: DO NOT change the hostname via webportal.
 
Note: DO NOT change the hostname via webportal.

Revision as of 14:20, 10 March 2021

Change hostname

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

  • ssh to the Centos host
  • Do shell command "hostname" to show the current hostname
hostname

For Centos 7, the hostname command is

  
hostnamectl
  • Change to the new name:
hostname NewHostName

For CentOS 7,

 
hostnamectl  set-hostname   NewHostName
  • Restart toolpack:
tbtoolpack stop
tbtoolpack start

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.


Note: DO NOT change the hostname via webportal.

Personal tools