Currently OpenRC does not have any support for DHCPv6 - this could trivially be implemented for the ISC suite simply by copying the existing dhclient script to dhclient6 and passing "-6" to the binary, but perhaps a member of the OpenRC team would prefer to make the script operate in a dual-stack manner. Of course, recent iterations of busybox also support DHCPv6 but I personally haven't tried it, I currently utilise the method described in the aforementioned paragraph.
I also believe (I haven't confirmed this yet) that dhcpcd is working twoard dhcpv6 support.
Well currently for my dual stack configuration i have following. in /etc/init.d i have created symbolic dhcp6 link to dhcp. In /etc/conf.d i copied dhcp to dhcp6 and added -6 to DHCPD_OPTS and created seperate dhcp6.conf in /etc/dhcp works like a charm... I read somewhere this is suggested way of doing it...
also obviously i added dhcp6 to run level default so it runs on boot :)
Created attachment 352962 [details, diff] Add support for DHCPv6 via dhclient Here's a patch that I created a few months ago that adds dhcpv6 support via dhclient (net-misc/dhcp client).
Looks good, committed in Git to branch bug450326. I would like testers due to the changes in iproute+ifconfig modules, and then we can merge it next week.
Looks like this has never been merged to master?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=d3b5d78c5f3696aaf841d7900e69a37de29cfc25 commit d3b5d78c5f3696aaf841d7900e69a37de29cfc25 Author: Daniel Solano Gómez <daniel@solanogomez.org> AuthorDate: 2013-04-06 00:13:12 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2020-06-02 21:24:24 +0000 dhclientv6: Add DHCPv6 support via dhclient This adds DHCPv6 support to OpenRC in Linux using dhclient as outlined by Stuart Longland at <http://stuartl.longlandclan.yi.org/blog/2011/02/15/gentoo-and-dhcpv6/>. The main place where the new support is added is via a modified copy of the dhclient.sh script that: - Renames functions using a 'v6' suffix - Uses a different pid file - Uses the '-6' argument when invoking dhclient - Recognizes new DHCPv6-specific configuration variables with a fallback to the DHCP configuration variables. Additionally: 1. The iproute2 and Linux ifconfig scripts have been ammended to be able to return IPv6 addresses using new '_get_inet6_address' and '_get_inet6_addresses' functions. 2. The 'net.lo' init script now has a '_show_address6' function. 3. The documentation in the Linux net.example now contains some DHCPv6 information. Reported-by: Dustin C. Hatch <admiralnemo@gmail.com> X-Gentoo-Bug: 150908 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=150908 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> (cherry picked from commit bd7bd3a513c8ddc554e211316c990b5f98110982) Closes: https://bugs.gentoo.org/450326 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> doc/net.example.Linux.in | 35 +++++++++++++++++++++ init.d/net.lo.in | 4 +++ net/Makefile | 2 +- net/dhclientv6.sh | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ net/ifconfig.sh.Linux.in | 26 +++++++++++++-- net/iproute2.sh | 19 +++++++++-- 6 files changed, 162 insertions(+), 6 deletions(-)