Bug 17177 - Bug in dhcpd6 configuration
Summary: Bug in dhcpd6 configuration
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Shlomi Fish
QA Contact:
Depends on: 17490
  Show dependency treegraph
Reported: 2015-11-19 15:15 CET by Alejandro Vargas
Modified: 2016-01-20 18:57 CET (History)
1 user (show)

See Also:
Source RPM: dhcp-server-4.3.2-1.1.mga5.x86_64.rpm
Status comment:


Description Alejandro Vargas 2015-11-19 15:15:28 CET
RPM FILE: dhcp-server-4.3.2-1.1.mga5.x86_64.rpm

dhcpd6 service can't be started. 

The file /usr/lib/systemd/system/dhcpd6.service has a bug. 

Line 6 is:

Environment=CONFIGFILE=/etc/dhcpd6.conf LEASEFILE=/var/lib/dhcp/dhcpd6.leases

And it should be:

Environment=CONFIGFILE=/etc/dhcpd6.conf LEASEFILE=/var/lib/dhcpd/dhcpd6.leases

The RPM also should include an empty file named /var/lib/dhcpd/dhcpd6.leases because the deamon will not start if this file does not exist. It would be good if you also include an /etc/dhcpd6.conf sample file.
Alejandro Vargas 2015-11-19 15:16:00 CET

Source RPM: (none) => dhcp-server-4.3.2-1.1.mga5.x86_64.rpm

Alejandro Vargas 2015-11-19 15:16:10 CET

Hardware: i586 => All

Comment 1 David Walser 2015-11-24 15:17:07 CET
Indeed, thanks for the report.  The PID file definition is also wrong and there are some other files missing.  I've committed some changes in SVN.  Since this is easy to work around if you need to use it (and most don't), I don't see the need to issue an update just for this, but fixes for it will be included in any future update.

What I don't have yet is a dhcpd6.conf file.  I don't think the example one in the dhcp tarball (like the one in /usr/share/doc/dhcp-server for ipv4 dhcp) is an appropriate sample to put in /etc.  Do you have a sample dhcpd6.conf that would be similar to the /etc/dhcpd.conf that we install?

CC: (none) => luigiwalser

Comment 2 Samuel Verschelde 2015-12-07 13:22:07 CET
Assigning to maintainer.

Assignee: bugsquad => shlomif

Comment 3 Alejandro Vargas 2015-12-07 13:36:44 CET
This is my working dhcpd6.conf file:

default-lease-time 600;
max-lease-time 7200; 
log-facility local7; 
subnet6 fd00::/64 {
        # Range for clients
        range6 fd00:0::1:0 fd00:0::1:ffff;

        # Range for clients requesting a temporary address
        range6 fd00:ffff::0/64 temporary;

        # Additional options
        option dhcp6.name-servers fd00::fe;
        option dhcp6.domain-search "localnet";

        # Prefix range for delegation to sub-routers
        #prefix6 2001:db8:0:100:: 2001:db8:0:f00:: /56;

        # Example for a fixed host address
        #host specialclient {
        #       host-identifier option dhcp6.client-id 00:01:00:01:4a:1f:ba:e3:60:b9:1f:01:23:45;
        #       fixed-address6 2001:db8:0:1::127;

But you can find other sample here: http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/hints-daemons-isc-dhcp.html
Comment 4 David Walser 2015-12-17 21:29:18 CET
Thanks for the tldp link.  With that and some research I made a dhcpd6.conf and added it to the package.  All of these changes will be available in the next update.
David Walser 2016-01-13 19:59:34 CET

Depends on: (none) => 17490

Comment 5 David Walser 2016-01-13 20:00:09 CET
The update is ready to test in Bug 17490.
Comment 6 David Walser 2016-01-20 18:57:44 CET

Resolution: (none) => FIXED

Note You need to log in before you can comment on or make changes to this bug.