You are not logged in.
Hi, I've been recently taking upon the task to set up wake on lan WOL on my system. Only to find out I don't have the 50-wired.link file! I have a 20-ethernet.network file and it points me to multiple bug posts on the arch forums, because apparently it's not optimal to have it match with Type=ether so I really want to set it up properly as well, and I've only noticed this because the guide to set up WOL tells me to add a line to it so it supports the wakeonlan=magic. So here's the 20-eth file if that helps:
[Match]
# Matching with "Type=ether" causes issues with containers because it also matches virtual Ethernet interfaces (veth*).
# See https://bugs.archlinux.org/task/70892
# Instead match by globbing the network interface name.
Name=en*
Name=eth*
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
MulticastDNS=yes
# systemd-networkd does not set per-interface-type default route metrics
# https://github.com/systemd/systemd/issues/17698
# Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband.
# Use values from NetworkManager. From nm_device_get_route_metric_default in
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c
[DHCPv4]
RouteMetric=100
[IPv6AcceptRA]
RouteMetric=100
As my OSU profile says, I'm a professional dweeb.
Offline
The network file is set up properly, the comments only explain why it is set up with the name match instead of type match.
As for WOL, you will have to create the .link file and create all of the configuration shown in the example.
Start by copying /usr/lib/systemd/network/99-default.link as described in the note, change the match to match the correct interface and add the wol line.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
20-ethernet.network is on the arch installation iso, why is that on your disk?
The idea would be to add the suggested 50-wired.link - make sure to also read the rest of the article to verify that your ethernet NIC is actually WOL capable resp. the feature allowed in the BIOS/UEFI and to chose the proper method.
Edit: F5ck
Last edited by seth (2025-07-26 06:08:25)
Offline