Can't Start ISC DHCP IPv6 Server

Posted by MrDaniel on Ask Ubuntu See other posts from Ask Ubuntu or by MrDaniel
Published on 2012-08-08T14:29:12Z Indexed on 2013/11/11 22:15 UTC
Read the original article Hit count: 282

Filed under:
|
|
|
|

Trying to enable the ISC DHCP server for just IPv6 on Ubuntu 12.04 LTS.

I have downloaded and installed the DHCP server via the following command:

$ sudo apt-get install isc-dhcp-server

Then I have followed the instructions in the following resources, Ubuntu Wiki DHCPv6, SixXS - Configuring ISC DHCPv6 Server and Linux IPv6 HOWTO - Configuration of the ISC DHCP server for IPv6 .

So from review all those resources it seems like I need to:

  1. set a static IPv6 address for the Interface I want to run the DHCPv6 server from that is part of the IPv6 network subnet outside the DHCP range.

  2. Edit the /etc/dhcp/dhcpd6.conf file to configure the DHCPv6 range etc.

  3. Create the /var/lib/dhcp/dhcpd6.leases

  4. Manually start the DHCPv6 server.

Setting the Static IP for eth0

$ sudo ifconfig eth0 inet6 add 2001:db8:0:1::128/64

My dhcpd6.conf

default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet6 2001:db8:0:1::/64
{
   #Range for clients
   range6 2001:db8:0:1::129 2001:db8:0:1::254;
}

Created the dhcpd6.leases file

As indicated in the dhcpd.leases man page.

$ touch /var/lib/dhcp/dhcpd6.leases  #Tried with sudo as well

Manually starting the DHCPv6 server.

Attempted to start the server using the following command:

$ sudo dhcp -6 -f -cf /etc/dhcp/dhcpd6.conf eth0

The problem, the DHCP will not start, with an append error for the dhcpd6.leases file as indicated below when running the manual start command noted above.

Can't open /var/lib/dhcp/dhcpd6.leases for append.

Any ideas what I might be missing?

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about server