2

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.

1
  • 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, 2011 at 20:19

1 Answer 1

5

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 
1
  • I do this, but still when I type ifconfig, the inet adress is not the one I specified.
    – RocketMan
    Nov 21, 2011 at 16:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .