View Full Version : Changing the Computer Name in CentOS
convgn
3rd May 2006, 17:51
I just installed CentOS on my laptop and when I connected to the network at work, it automatically assigned me a computer name that might already exist on my network. How do I change that or stop it from doing it?
Your laptop probably got this name from a DHCP server.
If that is the case, and you don't want it to use DHCP, you can configure your network settings manually.
convgn
3rd May 2006, 19:28
How do I disable DHCP and assign a different computer name manually?
You can configure all your network settings (if you are using Gnome) from
Applications -> System settings -> Network
or using this command
/usr/bin/system-config-network
You can change your network settings in /etc/sysconfig/network-scripts/ifcfg-eth0, as described here: http://www.howtoforge.com/perfect_setup_centos_4.3_p3
You can change your hostname in /etc/sysconfig/network. Reboot the system afterwards.
convgn
3rd May 2006, 22:47
Thanks a lot for your help.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.