By default, the ethtool
setting for Wake-on-LAN does not persist across reboots on most Linux systems. To make Wake-on: g
permanent for your network interface (enp69s0
), you have several reliable options:
1.
Create a custom systemd service that sets WOL after the network interface is up:
-
Create the service file
/etc/systemd/system/wol@.service
with the following content:text[Unit] Description=Enable Wake-on-LAN for %i Requires=network.target After=network.target [Service] Type=oneshot ExecStart=/usr/bin/ethtool -s %i wol g [Install] WantedBy=multi-user.target
-
Enable the service for your interface:
textsudo systemctl enable wol@enp69s0.service
This ensures the command runs at every boot, after the network is initialized123.
2.
Alternatively, you can use a udev rule to apply the setting whenever the interface appears:
-
Create the file
/etc/udev/rules.d/81-wol.rules
with:textACTION=="add", SUBSYSTEM=="net", NAME=="enp69s0", RUN+="/usr/bin/ethtool -s enp69s0 wol g"
This ensures the setting is applied every time the device is added (e.g., at boot or after suspend)45.
3.
If you manage your network with NetworkManager, you can set WOL via:
textnmcli connection modify <connection-name> 802-3-ethernet.wake-on-lan magic
Replace <connection-name>
with the actual connection name for enp69s0
. This will set the WOL option at the NetworkManager level4.
When connecting two Linux devices directly via Ethernet (without a switch/router), common issues include:
-
: By default, neither side provides DHCP, so both devices may not get an IP address, resulting in connection errors.
-
NetworkManager Misconfiguration: If the connection profile is not set to "shared" or "link-local", automatic IP assignment may fail.
-
: Windows uses APIPA to assign addresses automatically, but Linux requires explicit configuration.
Option 1: Use NetworkManager's "Shared" Method
-
On your Arch system, run:
textnmcli con add type ethernet ifname enp69s0 con-name direct-pi ipv4.method shared nmcli con up direct-pi
This will assign a local IP and enable basic network sharing67.
: Manual Static IPs
-
Assign static IPs on both devices. For example:
-
On Arch:
sudo ip addr add 10.0.0.1/24 dev enp69s0
-
On Raspberry Pi:
sudo ip addr add 10.0.0.2/24 dev eth0
-
-
Now you should be able to ping each device from the other8.
-
Ensure the Ethernet cable is good and supports direct connections (modern devices usually auto-negotiate, but older ones may need a crossover cable).
-
Disable or configure firewalls if needed for testing.
-
If using Avahi/mDNS for
.local
hostnames, ensurenss-mdns
is installed and configured on both systems6.
Task | Recommended Solution |
---|---|
Persist WOL setting | systemd service (wol@enp69s0.service ) or udev rule |
Fix direct LAN "connection errors" | Use NetworkManager's "shared" method or assign static IPs on both devices |
By following these steps, you can make Wake-on-LAN persistent and resolve direct LAN connection errors between your Arch Linux system and Raspberry Pi.
- https://bbs.archlinux.org/viewtopic.php?id=202132
- https://necromuralist.github.io/posts/using-systemd-to-enable-wake-on-lan/
- https://gist.github.com/paddy74/9cd4160a1ff4eedb0366d0e6e5c02c50
- https://blog.galt.me/getting-wol-on-manjaro-20-working/
- https://linuxconfig.org/introduction-to-wake-on-lan
- https://bbs.archlinux.org/viewtopic.php?id=284239
- https://www.reddit.com/r/archlinux/comments/lkmvds/arch_not_connecting_with_raspberry_pi/
- https://raspberrypi.stackexchange.com/questions/121315/problem-in-connecting-my-arch-linux-to-my-raspberry-pi-raspbian
- https://wiki.archlinux.org/title/Wake-on-LAN
- https://bbs.archlinux.org/viewtopic.php?id=267311
- https://forum.endeavouros.com/t/cannot-persistently-enable-wake-on-lan/38301
- https://man.archlinux.org/man/extra/ethtool/ethtool.8.en
- https://forums.opensuse.org/t/how-to-enable-wake-on-lan-why-ethtool-opts-dont-work/132474
- https://forum.endeavouros.com/t/wake-on-lan-not-working/9206
- https://www.youtube.com/watch?v=ry2QxA9VOsE
- https://forum.proxmox.com/threads/wake-on-lan-on-pve.124785/
- https://bugzilla.kernel.org/show_bug.cgi?id=217069
- https://www.asus.com/us/support/faq/1045950/
- https://forum.manjaro.org/t/setting-up-wake-on-lan/144600
- https://bbs.archlinux.org/viewtopic.php?id=284950
- https://www.reddit.com/r/aorus/comments/rgt7r6/using_wakeonlan_with_aorus_trx40_i211_gigabit/
- https://www.youtube.com/watch?v=uUwaxrVIBiI
- https://www.reddit.com/r/archlinux/comments/10l4af0/i_need_help_with_wake_on_lan/
- https://www.youtube.com/watch?v=qX8KBFL0jjI
- https://www.reddit.com/r/Proxmox/comments/13blw5x/wake_on_lan_not_working/
- https://wiki.archlinux.org/title/Network_configuration/Ethernet
- https://www.gigabyte.com/at/Support/Consumer/Faq/376
- https://forum.manjaro.org/t/wake-on-lan-not-working/37696
- https://forum.manjaro.org/t/troubles-with-setting-up-wol/24815
- https://www.antixforum.com/forums/topic/wol-wake-on-lan/
- https://aur.archlinux.org/packages/wol-systemd?O=10
- https://serverfault.com/questions/1142769/trying-to-set-wake-on-lan-persistently-on-linux-fails
- https://www.reddit.com/r/openSUSE/comments/1eknqe2/how_to_enable_wol/
- https://github.com/gamer-os/gamer-os/issues/102
- https://wiki.archlinux.org/title/Udev
- https://askubuntu.com/questions/1142470/trouble-with-wake-on-lan-ubuntu-16-04
- https://forums.raspberrypi.com/viewtopic.php?t=304206
- https://forums.raspberrypi.com/viewtopic.php?t=187065
- https://forums.raspberrypi.com/viewtopic.php?t=196282
- https://forums.raspberrypi.com/viewtopic.php?t=47852
- https://wiki.archlinux.org/title/Network_configuration/Wireless
- https://stackoverflow.com/questions/26886952/direct-ethernet-connection-to-raspberry-pi-running-arch-linux
No comments:
Post a Comment