mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
- apply dhcp to all interfaces that are renamed to either 'lanX' or 'wanX' by udev. - applies to a.o. nanopi-r1, nanopi-r2s.
29 lines
1.2 KiB
YAML
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
|