Don't configure an IPv6 link-local address if noipv6rs is set#380
Don't configure an IPv6 link-local address if noipv6rs is set#380jvfranklin wants to merge 3 commits intoNetworkConfiguration:masterfrom
Conversation
|
This is a demo of what I'm seeing. Our product is a Linux-based system with a custom network manager daemon, so I'm just using dhcpcd as a DHCP/DHCPv6 client. If I want to use stable-privacy addresses, managed by the kernel, dhcpcd interferes with that when it starts up: /home/root# cat /tmp/dhcpcd.conf So now if I bring up nic1, it comes up with an EUI64 link-local instead of stable-privacy. I've also seen the interface have both, but I think it's timing dependent. /home/root# ip link set dev nic1 up With my patch, addr_gen_mode remains set to 2, and I don't have any conflicts between the network manager and dhcpcd. |
|
Need to think about this because you can use DHCPv6 without RS/RA and DHCPv6 still requires a LL address. I think we need a new option, I won't be around much this week so I'll think it over some. |
|
#343 is related to this I guess. |
|
It kinda is related to #343 since it's about not touching the interface's flags unless explicitly asked to do so. However, what this bug wants is more akin to having a configuration option for disabling DHCPv6 and letting RS do its thing without dhcpcd's intervention. What it instead reminds me of is something I reported a long time ago (I cannot remember the bug number): in some circumstances, a superflous LL6 address that uses EUI64 gets added in addition to a LL6 address that uses dhcpcd's pseudo-privacy. |
|
Have we reached a consensus on this MR? |
|
Just to note, this patch actually fixes #534 |
|
Thanks for the heads-up. |
The configuration I'm using uses the noipv6rs option to allow the Linux kernel to do router discovery, slaac, etc. I'm seeing dhcpcd configuring an EUI64 format link-local address unnecessarily. This change stops dhcpcd from doing that.