Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 899624

Summary: net-misc/netifrc: net.example ipv6 documentation out of date
Product: Gentoo Linux Reporter: Karl Hakimian <hyedad>
Component: Current packagesAssignee: netifrc Team <netifrc>
Status: UNCONFIRMED ---    
Severity: minor CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Karl Hakimian 2023-03-05 01:54:01 UTC
The net.example file states that you should use dhclient for doing dhcp over an ipv6 network and that dhcpcd will not work for ipv6. While this advice can be made to work, it is certainly not the optimal solution.

The truth of the matter is that if the ipv6 router is advertising stateful addresses, dhcpcd will just work.

While you can make dhclient work even if the router is not advertising stateful connections, getting dhclient to work at all on ipv6 requires hooks to properly setup the interface and force the kernel to create a link-local address. Both things are done by dhcpcd out of the box.

Reproducible: Always

Steps to Reproduce:
less /usr/share/doc/netifrc-0.7.3/net.example.bz2
Actual Results:  
Bad advice

Expected Results:  
Good advice about ipv6 routers and dhcpcd.

I'll mark this as minor even though the internet searches required to figure out the correct solution were more than what I would consider an easy workaround.