summaryrefslogtreecommitdiff
path: root/configs/releng/airootfs/etc/systemd/network
diff options
context:
space:
mode:
authorDavid Runge <dvzrv@archlinux.org>2020-05-30 20:58:48 +0200
committerDavid Runge <dvzrv@archlinux.org>2020-05-31 21:41:57 +0200
commit0d67870667ee8c2084dea2bbdf1323288e2e7457 (patch)
tree11c8d4670f06001a16957b8c4c338a0af0e639c5 /configs/releng/airootfs/etc/systemd/network
parent769fbecef3ea7411c6e68ff1c4838f49b7c5d648 (diff)
downloadarchiso32-0d67870667ee8c2084dea2bbdf1323288e2e7457.tar.xz
Replacing dhcpcd with systemd-networkd and systemd-resolved
configs/releng/airootfs/etc/udev/rules.d/81-dhcpcd.rules: Removing the udev rule for starting dhcpcd@.service on interfaces of the form eth* and en*. configs/releng/airootfs/etc/systemd/network/{ethernet,wireless}.network: Adding default DHCP configurations for en*, eth*, wlp* and wlan* interfaces. configs/releng/airootfs/etc/resolv.conf: Adding a symlink from /run/systemd/resolve/stub-resolv.conf to /etc/resolv.conf (in airootfs). configs/releng/airootfs/root/customize_airootfs.sh: Adding systemd-networkd and systemd-resolved to the list of services that are being enabled during airootfs customization.
Diffstat (limited to 'configs/releng/airootfs/etc/systemd/network')
-rw-r--r--configs/releng/airootfs/etc/systemd/network/ethernet.network11
-rw-r--r--configs/releng/airootfs/etc/systemd/network/wireless.network11
2 files changed, 22 insertions, 0 deletions
diff --git a/configs/releng/airootfs/etc/systemd/network/ethernet.network b/configs/releng/airootfs/etc/systemd/network/ethernet.network
new file mode 100644
index 0000000..5e9f0b7
--- /dev/null
+++ b/configs/releng/airootfs/etc/systemd/network/ethernet.network
@@ -0,0 +1,11 @@
+[Match]
+Name=en*
+Name=eth*
+
+[Network]
+DHCP=ipv4
+IPv6PrivacyExtensions=yes
+IPv6AcceptRA=false
+
+[DHCP]
+RouteMetric=512
diff --git a/configs/releng/airootfs/etc/systemd/network/wireless.network b/configs/releng/airootfs/etc/systemd/network/wireless.network
new file mode 100644
index 0000000..5a6da15
--- /dev/null
+++ b/configs/releng/airootfs/etc/systemd/network/wireless.network
@@ -0,0 +1,11 @@
+[Match]
+Name=wlp*
+Name=wlan*
+
+[Network]
+DHCP=ipv4
+IPv6PrivacyExtensions=yes
+IPv6AcceptRA=false
+
+[DHCP]
+RouteMetric=1024