-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't configure an IPv6 link-local address if noipv6rs is set #380
base: master
Are you sure you want to change the base?
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. |
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.