Skip to content
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

systemd-networkd: default to DUIDType=link-layer for ipv6; via networkd.conf.d #7232

Conversation

rpardini
Copy link
Member

systemd-networkd: default to DUIDType=link-layer for ipv6; via networkd.conf.d

  • systemd-networkd: default to DUIDType=link-layer for ipv6; via networkd.conf.d
    • only affects systemd-networkd-using builds (MINIMAL images?)
    • does NOT affect NetworkManager
    • this allows network administrators to give out IPv6 addresses over DHCPv6 based on the MAC address (which should be stable) instead of systemd's own notion of it's "DUID", which is based on the machine-id and changes on every redeployment

…kd.conf.d

- only affects systemd-networkd-using builds (MINIMAL images?)
- does NOT affect NetworkManager
- this allows network administrators to give out IPv6 addresses over DHCPv6 based on the MAC address (which should be stable) instead of systemd's own notion of it's "DUID", which is based on the machine-id and changes on every redeployment
@github-actions github-actions bot added size/small PR with less then 50 lines Framework Framework components labels Sep 14, 2024
@rpardini rpardini marked this pull request as ready for review September 14, 2024 08:46
@igorpecovnik
Copy link
Member

igorpecovnik commented Sep 14, 2024

Would adding dhcp-identifier: "mac" do the same? Netplan example (but in ipv4 configuration):

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      addresses:
      - "10.0.10.229/24"
      nameservers:
        addresses:
        - 9.9.9.9
        - 1.1.1.1
      dhcp-identifier: "mac"
      routes:
      - metric: 200
        to: "0.0.0.0/0"
        via: "10.0.10.1"

@rpardini
Copy link
Member Author

Would adding dhcp-identifier: "mac" do the same? Netplan

I've stumbled upon that, but I'm unsure what it really does and it seems it depends on the netplan version. Either way, doing it in netplan would (possibly) affect NetworkManager as well, while requiring all netplan configurations to have it. Doing it at the systemd-networkd level makes it consistent independent of the netplan config.

As you can probably guess, this is specially important for cloud images, which may generate their own netplan config based on the c-i metadata.

Copy link
Member

@igorpecovnik igorpecovnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

affect NetworkManager as well

AFAIK this feature is not supported by NM anyway. At least not NetPlan way.

OK, I think its better to have this then not have it or leave user to depend on setting dhcp-identifier and hope being properly translated.

@igorpecovnik igorpecovnik added Ready to merge Reviewed, tested and ready for merge 11 Milestone: Fourth quarter release labels Sep 14, 2024
@igorpecovnik igorpecovnik merged commit 1b4e19d into armbian:main Sep 14, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11 Milestone: Fourth quarter release Framework Framework components Ready to merge Reviewed, tested and ready for merge size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

2 participants