Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150908 - sys-apps/openrc: dhcp6c network module
Summary: sys-apps/openrc: dhcp6c network module
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: OpenRC Team
URL:
Whiteboard: openrc:oldnet
Keywords: NeedPatch
: 264317 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-11 09:57 UTC by Dustin C. Hatch
Modified: 2013-04-10 17:43 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add support for DHCPv6 via dhclient. (0001-Add-DHCPv6-support-via-dhclient.patch,7.65 KB, patch)
2013-04-06 00:28 UTC, Daniel Solano Gómez
Details | Diff
Updated patch to set DDNS options (0001-Add-DHCPv6-support-via-dhclient.patch,7.79 KB, patch)
2013-04-07 00:11 UTC, Daniel Solano Gómez
Details | Diff
Updated patch that installs the dhclientv6.sh script. (0001-Add-DHCPv6-support-via-dhclient.patch,8.34 KB, patch)
2013-04-10 17:43 UTC, Daniel Solano Gómez
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin C. Hatch 2006-10-11 09:57:26 UTC
It would be great if a module was made (/lib/rcscripts/net) for dhcp6c. I don't know how hard it would be, considering dhcp6c works just fine without a configuration file, but needs one for advanced features.

One thing to point out, however, is the bug requiring an ipv4 address on the interface in question before dhcp6c will run.  I found that using an apipa works fine, as long as it is assigned before dhcp6c is run.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-10-12 04:02:56 UTC
Kind of pointless really then if it requires an ipv4 address :)
Why not use radvd and automagically configure IP addresses that way?
Comment 2 Dustin C. Hatch 2006-10-12 08:32:39 UTC
Because radvd doesn't(In reply to comment #1)
> Kind of pointless really then if it requires an ipv4 address :)
> Why not use radvd and automagically configure IP addresses that way?
> 

Because radvd doesn't send DNS server addresses.
Comment 3 Dustin C. Hatch 2006-10-12 15:16:31 UTC
So I just found out about dibbler.  Seems to work fine.  Even supports stateless address getting, adding dhcpv6 functionality on top. Perhaps you could make a module for that instead?
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-10-17 09:01:48 UTC
I don't have a dhcpv6 server to test against, and my previous attempts with dhcp6c/s failed badly the last time (plus it's kind of a dead project last I looked). dibbler was dead too, but it looks like they've put out new software.

I can attempt to write a module based on their man page - can you test it for me?
Comment 5 Dustin C. Hatch 2006-10-17 09:21:53 UTC
Yeah, I sure can. I would be glad to help out with whatever you want to tackle. Unfortunately, Dibbler doesn't work with modern kernels, and dhcp6c has that strange bug, but I hacked up my configuration to get it to work.

Let me know what you need me to do and when and I will gladly provide you with any testing resources you need. :)
Comment 6 Petr Pisar 2007-09-20 11:02:54 UTC
Ad dibbler: This project is regulary maintained, it runs on up-to-date linux kernel very well. The only problem is the client is not "interactive". It demonizes and operates autonomously (changes IP address, resolver and ntpd configuration). Currently, this missing feature is noted in dibbler's bug tracking system.

There is also another issue regarding configuration on system startup time: The IPv6 address life cycle is more complicated. There are link scope and global scope adresses that have to be verified for duplications on link. Until the duplicate address detection (DAD) is not finished the addresses are not allowed by kernel for regular usage (binding etc.).

Therefore IPv6 address list on interface can change on every link state change (e.g. ethernet cable plug in). This requires absolutly new approach from applications and start-up scripts. OTOH, IPv4 world doesn't solve this problem (changing addresses at run time) at all.

My opinion is that network startup script should be able to manage stateless and statefull IP address configuration. But they must be able to pass interface without addresses too. We should warn the user that IP or DNS server addresses haven't been configured yet but the final effect (starting or not starting network services) should be configurable. I.e. scenario where no address is recieved and system continues starting must be considered as standard.
Comment 7 Petr Pisar 2008-06-30 12:36:30 UTC
ISC DHCP client contains preliminary support for DHCPv6 since version 4.0.0.
Comment 8 SpanKY gentoo-dev 2009-10-11 09:19:14 UTC
*** Bug 264317 has been marked as a duplicate of this bug. ***
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-07 01:41:28 UTC
net-misc/dhcpv6 is no longer in the tree, so this won't be supported.
Comment 10 Daniel Solano Gómez 2012-08-12 18:19:56 UTC
I would like to propose reopening this issue.  It was closed WONTFIX because of the absence of net-misc/dhcpv6.  However this functionality is available from net-misc/dhcp.  Stuart Longland (redhatter) has written about how to add DHCPv6 support in <http://stuartl.longlandclan.yi.org/blog/2011/02/15/gentoo-and-dhcpv6/>.

If I created a patch for OpenRC that added dhcpv6 support, is there a chance it would get accepted?
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-08-12 18:26:10 UTC
We closed it with NeedPatch as well.
Send a patch and we'll take it.
Write it against the openrc git tree please.
Comment 12 Daniel Solano Gómez 2013-04-06 00:28:39 UTC
Created attachment 344574 [details, diff]
Patch to add support for DHCPv6 via dhclient.

At long last, here's my proposed patch to OpenRC to add some basic DHCPv6 support via dhclient.  I have tested this using iproute2 and ifconfig (old and new formats) on Linux.  I have no idea whether or how this works on *BSD.

I welcome any feedback.

Thanks!
Comment 13 Daniel Solano Gómez 2013-04-07 00:11:45 UTC
Created attachment 344678 [details, diff]
Updated patch to set DDNS options

I found that the wrong options were being set for DDNS.  Here's an updated patch that sets the correct options.
Comment 14 Daniel Solano Gómez 2013-04-10 17:43:28 UTC
Created attachment 345132 [details, diff]
Updated patch that installs the dhclientv6.sh script.

I discovered that the dhclientv6.sh script wasn't being installed.  So, here's an update to the patch that installs the script only on Linux.