From ee55ee9649a03fe7ae83f992fefe35d0bd5d194c Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 13 Apr 2024 12:21:20 +0200 Subject: [PATCH] update arch notes page --- content/notes/archlinux/index.md | 37 ++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/content/notes/archlinux/index.md b/content/notes/archlinux/index.md index b06dcb3..b99f513 100644 --- a/content/notes/archlinux/index.md +++ b/content/notes/archlinux/index.md @@ -1,7 +1,7 @@ --- title: Archlinux date: 2023-11-29T20:33:48+0100 -lastmod: 2024-03-02T09:56:32+0000 +lastmod: 2024-04-13T10:21:20+0000 tags: - archlinux @@ -21,11 +21,40 @@ draft: true ## Predictable network interfaces -### systemd.link +Get back the "old" interface names like `eth0` or `wlan0` with +[systemd.link](https://www.man.page/5/systemd.link). -This might be useful, sometimes. +### Ethernet - +This makes my ethernet interface be called **eth0** again. + +Create `/usr/lib/systemd/network/80-ether.link` with this content: + +~~~systemd +[Match] +Type=ether + +[Link] +NamePolicy=keep kernel +~~~ + +Reboot. + +### Wireless + +This makes my wireless interface be called **wlan0** again. + +Create `/usr/lib/systemd/network/80-wlan.link` with this content: + +~~~systemd +[Match] +Type=wlan + +[Link] +NamePolicy=keep kernel +~~~ + +Reboot. ## Prefer local DNS instead of systemd-resolved defaults