This question already has an answer here:

apt-get fail to resolve the mirror. I am using my server as a backup server to one of my website servers. So I had to initially set a static IP address... How can I do it?

merged by Mitch Dec 6 '14 at 7:25

This question was merged with How to set static IP address? because it is an exact duplicate of that question.