forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd-networkd: default to DUIDType=link-layer for ipv6; via networ…
…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
- Loading branch information
1 parent
ef537a6
commit 1b4e19d
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
extensions/network/config-networkd/systemd/networkd.conf.d/mac-duid.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Use LL (link-layer, sans timestamp) DUIDs for DHCP. | ||
# It is the default for v4, but not for v6. | ||
# Having it set to LL allows network admins to do MAC-based reservations for v6 the same way there's done for v4. | ||
# If the MAC address of an interface is 01:02:03:04:05:06, then the DUID will be 00030001010203040506 | ||
[DHCPv4] | ||
DUIDType=link-layer | ||
|
||
[DHCPv6] | ||
DUIDType=link-layer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters