RE: Changing IP and HOSTNAME on an existing RedHat system.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I do it like that:

#grep -ir hostname /etc/*

and change it on the found files.

-----Message d'origine-----
De : Adam Gilstrap [mailto:agilstrap@xxxxxxxxxxxxxxxx]
Envoyé : lundi 12 avril 2004 13:55
À : 'General Red Hat Linux discussion list'
Objet : RE: Changing IP and HOSTNAME on an existing RedHat system.


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@xxxxxxxxxxxxxxxx
Director of Information Technology
Phone:(706)724-1555
Fax:(706)262-5912


-----Original Message-----
From: Tobias Speckbacher [mailto:tobias@xxxxxxxxx] 
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@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of
listhub@xxxxxxxxxxxxxxxxxxxxx
Sent: Saturday, April 10, 2004 3:46 PM
To: redhat-list@xxxxxxxxxx
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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list





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


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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux