Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

1 Answer 1

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.