The instruction from this link works to change from DHCP dynamic IP to static. But there's a step where it says:

You need to also remove the dhcp client for this to stick (thanks to Peter for noticing). You might need to remove dhcp-client3 instead.

And then:

sudo apt-get remove dhcp-client

Is that really necessary? If so why? Is there any other way without removing dhcp-client?

  • Reading through this "how-to" (Dr. Evil air quotes), I get the distinct feeling the author does not really know what he's talking about... He seems to adopt several "tips" (air quotes again) from the comments without further ado. – Nephente Oct 8 '15 at 8:27

No, you don't need to do that. Refer to this other answer on askubuntu site

I personally use the following bit of code in /etc/dhcp/dhclient.conf file on my home PC which has a USB wireless dongle attached to it:

interface "wlan0" {
    send dhcp-requested-address;


As you can see, the PC always asks for address.


i have never removed the dhcp-client for a static lease. if you edit the interfaces file to make your eth0, or which eth you are configuring, static. It should work after a reboot or a network restart.

So imho no you don't have to remove it... hope it helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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