Change Hostname
From TBwiki
Revision as of 12:08, 11 March 2021 by Luc Morissette (Talk | contribs)
Contents |
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.