The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Linux

(Solved) - from DHCP to a static ip (/etc/resolv.conf will overwrite on boot-up) SOLVED

(1 post)
  • Started 3 years ago by Doddy
  • Topic Viewed 992 times


Recommended: Clean Your Mac the Easy Way with CleanMyMac 3

If you want to clean up your Mac the easy way, CleanMyMac is a great tool to get the job done easily, and it will even keep your computer clean automatically.

Unlike the competition, it also includes great tools like a Clean Uninstaller, to get rid of applications and clean up the junk that they leave behind. All with the click of a button.

Download CleanMyMac 3 for Free Today

Posted yesterday 
Posts: 1

In very short:
Ubuntu Server 12.04.1
Changing the setup from DHCP to static, (/etc/network/interfaces).

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
dns-nameservers, (this is from your internet service provider) if you don't do this you wont be able to have internet acces.

By the way, you do not need to edit the /etc/resolv.conf file, It will be overwritten anyway at restart. And also don't need to uninstall the DHCP which a lot of people are mentioning in most forums. the dns-nameservers line will do the trick. (the ip are separated by e comma and a space)

Posted 3 years ago

Topic Closed

This topic has been closed to new replies.