Wednesday, August 7, 2013

CentOS - how to change computer name and static IP address (network settings)

To update computer name (hostname) and IP Address in CentOS, edit the following files.

  • Computer Name (host name)
    /etc/sysconfig/network
  • IP Address and other network settings
    /etc/sysconfig/network-scripts/ifcfg-eth0  (or similar file)

Reboot the computer afterwards.

No comments: