Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 4 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
add comment

Your Answer

 
discard

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.