Changing IP and HOSTNAME on an existing RedHat system.

Adam Gilstrap agilstrap at infoprogroup.com
Mon Apr 12 12:54:39 UTC 2004


You should be able to use the hostname command....where you would simply
say: hostname something else....that would change the hostname on the
system. 


Adam Gilstrap
agilstrap at infoprogroup.com
Director of Information Technology
Phone:(706)724-1555
Fax:(706)262-5912


-----Original Message-----
From: Tobias Speckbacher [mailto:tobias at quova.com] 
Sent: Saturday, April 10, 2004 8:22 PM
To: General Red Hat Linux discussion list
Subject: RE: Changing IP and HOSTNAME on an existing RedHat system.

Change the ip in /etc/sysconfig/network-scripts/ifcfg-eth0  (if eth0 is what
you want to change)

The hostname can be changed in /etc/syconfig/network .

6.0 is quite old but if memory serves me right nothing in respect to these 2
files changed since then.

-T

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of
listhub at libros.andante.mn.org
Sent: Saturday, April 10, 2004 3:46 PM
To: redhat-list at redhat.com
Subject: Changing IP and HOSTNAME on an existing RedHat system.

Ok list.

One more question to help me with my LAN restructuring.  This is on a very
old system Red Hat 6.0

If I have an existing system with

hostname: something
IP: XXX.XXX.XXX.98

and I want to change it on the same LAN to

hostname: somethingelse
IP: XXX.XXX.XXX.101

What files to I need to alter?
Is there a tool to do this or is it manual edits?
Should I do this off the LAN, reconnect and then reboot?

I do not want to upgrade the system.  It does nothing but serve an obsolete
database and I do not want to migrate the data.  If I can just have it be
another hostname and IP on the existing LAN that will solve all problems.
In fact, the hostname and IP I wish to change it too is for a system that
died a year ago so all machines on that LAN have a hosts entry for that IP
and sendmial is configured to send mail to it if it ever shows up.

Thanks for all the help RedHat gurus.

Peace
john
------------------------------------
John N. Alegre                   o
Andante Systems               o
eCommerce Consulting       o
Custom Web Development <*{{{{}><
------------------------------------ 


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list








More information about the redhat-list mailing list