Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing IP addresses for server 1

Status
Not open for further replies.

csross

MIS
Dec 21, 2003
92
US
I have a RH 9 server and I need to change the IP address.
I edited the /etc/hosts and /etc/sysconfig/network file, but everytime the system boots the old address remains. I
also did an ifconfig and set the address, but of course the reboot changed it.

Are there other files that are used to set the ip address? What about the hostname?

I'm a solaris person and this is an easy task with solaris?

thanks
 
Look in

/etc/sysconfig/network-scripts

There you will find files named like:

ifcfg-eth0

The filename above is the interface configuration file for ethernet card 0.

If you are moving from one static IP address to another, the format of the file should be self-explanatory.


A machine's hostname is set in:

/etc/sysconfig/network

There should be a line there that reads:

HOSTNAME=foo.foo.bar.bar


Are you going to have to change nameservers? Those are set in /etc/resolv

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thanks for the quick response. I check them out and give it a try.
 
On some distros you will find the setting in
Code:
/etc/rc.d/rc.inet1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top