Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 serverfault.com 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
    address 10.0.1.14
    netmask 255.255.255.0
    network 10.0.1.0
    broadcast 10.0.1.255
    gateway 10.0.1.1
    subnet 10.0.1.0/24 
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

 
discard

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.