Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to set up a DHCP server on Ubuntu 10.10. How can I give it a static IP? I know this question is not very specific--I would like just you to point me in the right direction.

share|improve this question

migrated from Nov 20 '11 at 20:50

This question came from our site for system and network administrators.

I've not yet flagged the question. But it can be rewritten as: "How do i set a static ip in Linux?" And would likely fit SU better than SF? – artifex Nov 20 '11 at 20:19

edit /etc/network/interfaces and change the IP's below to suit your needs.

once complete, /etc/init.d/networking restart

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
share|improve this answer
I do this, but still when I type ifconfig, the inet adress is not the one I specified. – RocketMan Nov 21 '11 at 16:19

Your Answer


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.