-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
network/dhcp: add IPv6 only mode support #29472
Conversation
9ed7a5f
to
bfe58e2
Compare
@ssahani Sorry for late. Finally I added several test cases. The basic implementation for DHCP server side is equivalent to yours. But the implementation for the client side is quite different. Please take a look. |
8b28148
to
51a8394
Compare
dbacd59
to
bd095ff
Compare
Looks pretty good. Thanks a ton working on this. |
CentOS CI failure is unrelated (TEST-50-DISSECT). |
bd095ff
to
38e24d5
Compare
38e24d5
to
4094215
Compare
@poettering Thank you for the review. Addressed the above suggestions. Upgrading the green label. |
This makes sd-dhcp-server send IPv6 only preferred option (RFC 8925). Co-authored-by: Yu Watanabe <[email protected]>
Co-authored-by: Yu Watanabe <[email protected]>
This makes sd-dhcp-client optionally request IPv6 only preferred option (RFC 8925).
Co-authored-by: Susant Sahani <[email protected]>
For [DHCPv4] IPv6OnlyMode= and [DHCPServer] IPv6OnlyPreferredSec=.
2b06738
to
46f2eb5
Compare
Looks like in IPv6-only mode
It's expected that it should fail but I'm not sure it should look like this. |
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd#29472 (comment).
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd/systemd#29472 (comment). (cherry picked from commit 9bd91e3)
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd/systemd#29472 (comment). (cherry picked from commit 9bd91e3)
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd/systemd#29472 (comment). (cherry picked from commit 9bd91e3)
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd/systemd#29472 (comment). (cherry picked from commit 9bd91e3) (cherry picked from commit f453cbc)
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd/systemd#29472 (comment). (cherry picked from commit 9bd91e3) (cherry picked from commit f453cbc)
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd/systemd#29472 (comment). (cherry picked from commit 9bd91e3) (cherry picked from commit f453cbc) (cherry picked from commit 073d2db)
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd/systemd#29472 (comment). (cherry picked from commit 9bd91e3) (cherry picked from commit f453cbc) (cherry picked from commit 073d2db)
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd#29472 (comment).
…e client is stopped Follow-up for fc35a9f. Fixes the issue systemd/systemd#29472 (comment). (cherry picked from commit 9bd91e3) (cherry picked from commit f453cbc) (cherry picked from commit 073d2db)
As I already commented over at #23674 , I'm not 100% sure if this current implementation matches the RFC8925 spec. The RFC says that this parameter should be sent by "IPv6-only-capable hosts", and defines that term with the following description:
This sounds to me like this flag should only be advertised on hosts that are only running IPv6-capable software, or on hosts running a 464XLAT (#23674). By turning this flag on by default, this means that any Linux machine with systemd, running in a network that uses / supports that flag, the Linux machine will not request an IPv4 from the DHCP server, breaking all functionality for IPv4-only applications. According to the RFC, if I'm interpreting it correctly, this parameter should only be sent when there's a working 464XLAT (or when the administrator is 100% sure there's only IPv6-capable software on the machine and manually turns it on, but not by default). Can this be updated to switch the default value for |
split-out of #29063.
replaces #28950.