Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My host has given me a new IP to use instead of the one I'm currently using. How can I set my server's IP from the old one to the new one?

Using CentOS 5.7, no control panels.

share|improve this question
up vote 6 down vote accepted

I assume you have a static IP address. Look in the /etc/sysconfig/network-scripts directory. You'll see files of the form ifcfg-eth?. Depending on which interface you're changing, it'll be eth0, eth1, and so on. Modify that file, then restart networking.

share|improve this answer
That was much easier than I thought it'd be! Thanks! – Rob Feb 11 '12 at 2:04

Just use the CLI menu command "setup" Type that into bash and you'll get a menu that will do all the work ...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.