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'm trying to set a DHCP server on 13.10. I installed:

sudo apt-get install isc-dhcp-server

My configuration files look like this:

/etc/default/isc-dhcp-server

INTERFACES="eth0"

/etc/network/interfaces

auto lo
iface lo inet loopback

/etc/dhcp/dhcpd.conf

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;

subnet 10.167.100.1 netmask 255.255.255.0
{
    range 10.167.100.150 10.167.100.200;
}

When I run sudo service isc-dhcp-server restart I get:

stop: Unknown instance: 
start: Job failed to start

My ipaddress details:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:ca:3a:b6:b2:33  
          inet addr:10.167.100.172  Bcast:10.167.255.255  Mask:255.255.0.0
          inet6 addr: fe80::baca:3aff:feb6:b233/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:627294 errors:0 dropped:0 overruns:0 frame:0
          TX packets:330047 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:536432668 (536.4 MB)  TX bytes:49746041 (49.7 MB)
          Interrupt:20 Memory:f7c00000-f7c20000 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:22009 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22009 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1851114 (1.8 MB)  TX bytes:1851114 (1.8 MB)
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether b8:ca:3a:b6:b2:33 brd ff:ff:ff:ff:ff:ff
    inet 10.167.100.172/16 brd 10.167.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::baca:3aff:feb6:b233/64 scope link 
       valid_lft forever preferred_lft forever

What am I doing wrong here?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.