How can I configure ubuntu to have a static IP address but still use DHCP for other configuration information?

fields asked:

I want to use DHCP to pick up the network configuration information including DNS, but still assign a static IP address.

On OS X, this is “Using DHCP with manual address”, but I see no similar configuration option for ubuntu in the GUI, and I can’t find any information about how to configure /etc/network/interfaces to do that.

My answer:


Or you can just set up IP address reservations in your DHCP server. This associates IP addresses with specific MAC addresses, so that the same network interface always gets the same IP address. Consult your DHCP server documentation for details.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.