fix/netplan-dhcp-all-lan-wan-interfaces

- apply dhcp to all interfaces that are renamed to either
  'lanX' or 'wanX' by udev.
- applies to a.o. nanopi-r1, nanopi-r2s.
This commit is contained in:
Tom Urlings
2025-05-30 11:50:42 -07:00
committed by Igor
parent 08c19c021f
commit cdf71df4b8

View File

@@ -14,3 +14,15 @@ network:
dhcp4: yes
dhcp6: yes
ipv6-privacy: yes # Enabled by default on most current systems, but networkd currently doesn't enable IPv6 privacy by default, see https://man.archlinux.org/man/systemd.network.5
all-lan-interfaces: # include interfaces that are renamed to 'lanX' by udev, e.g. nanopi-r2s
match:
name: "lan[0-9]*"
dhcp4: yes
dhcp6: yes
ipv6-privacy: yes # Enabled by default on most current systems, but networkd currently doesn't enable IPv6 privacy by default, see https://man.archlinux.org/man/systemd.network.5
all-wan-interfaces: # include interfaces that are renamed to 'wanX' by udev, e.g. nanopi-r1
match:
name: "wan[0-9]*"
dhcp4: yes
dhcp6: yes
ipv6-privacy: yes # Enabled by default on most current systems, but networkd currently doesn't enable IPv6 privacy by default, see https://man.archlinux.org/man/systemd.network.5