Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450326 - net-misc/netifrc has no support for DHCPv6
Summary: net-misc/netifrc has no support for DHCPv6
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
Whiteboard: netifrc:dhclientv6
Depends on:
Reported: 2013-01-05 02:17 UTC by Olipro
Modified: 2020-06-02 21:25 UTC (History)
6 users (show)

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

Add support for DHCPv6 via dhclient (0001-Add-DHCPv6-support-via-dhclient.patch,8.34 KB, patch)
2013-07-09 21:28 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 Olipro 2013-01-05 02:17:39 UTC
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.
Comment 1 William Hubbs gentoo-dev 2013-01-05 21:50:44 UTC
I also believe (I haven't confirmed this yet) that dhcpcd is working
twoard dhcpv6 support.
Comment 2 Klemen Mihevc 2013-01-22 22:11:52 UTC
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...
Comment 3 Klemen Mihevc 2013-01-22 22:12:52 UTC
also obviously i added dhcp6 to run level default so it runs on boot :)
Comment 4 Daniel Solano Gómez 2013-07-09 21:28:02 UTC
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).
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-08-28 20:15:21 UTC
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.
Comment 6 Manuel Rüger (RETIRED) gentoo-dev 2015-05-27 21:28:55 UTC
Looks like this has never been merged to master?
Comment 7 Larry the Git Cow gentoo-dev 2020-06-02 21:25:04 UTC
The bug has been closed via the following commit(s):

commit d3b5d78c5f3696aaf841d7900e69a37de29cfc25
Author:     Daniel Solano Gómez <>
AuthorDate: 2013-04-06 00:13:12 +0000
Commit:     Robin H. Johnson <>
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 <>.
    The main place where the new support is added is via a modified copy of
    the 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.
    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
    Reported-by: Dustin C. Hatch <>
    X-Gentoo-Bug: 150908
    Signed-off-by: Robin H. Johnson <>
    (cherry picked from commit bd7bd3a513c8ddc554e211316c990b5f98110982)
    Signed-off-by: Robin H. Johnson <>

 doc/ | 35 +++++++++++++++++++++
 init.d/         |  4 +++
 net/Makefile             |  2 +-
 net/        | 82 ++++++++++++++++++++++++++++++++++++++++++++++++
 net/ | 26 +++++++++++++--
 net/          | 19 +++++++++--
 6 files changed, 162 insertions(+), 6 deletions(-)