Files
build/extensions/network/config-networkd/netplan/10-dhcp-all-interfaces.yaml
Tom Urlings cdf71df4b8 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.
2025-06-03 09:49:13 +02:00

29 lines
1.2 KiB
YAML

# Added by Armbian
#
# Reference: https://netplan.readthedocs.io/en/stable/netplan-yaml/
#
# Let systemd-networkd manage all Ethernet devices on this system, but be configured by Netplan.
network:
version: 2
renderer: networkd
ethernets:
all-eth-interfaces:
match:
name: "e*"
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