Sample Header Ad - 728x90

How to set up wake-on-lan on a Linux computer

0 votes
1 answer
1392 views
I have two Linux machines connected to the same network and I'm trying to get WOL working on one of them. I.e. I want to use **machine_1** to turn on **machine_2** remotely. I enabled WOL in the bios of machine_2, and I've verified that it is enabled in the OS. When I run sudo ethtool I get:
Supports Wake-on: pumbg
	Wake-on: g
However, when I send the magic packet through the other machine, it doesn't work. The computer receiving does not turn on. I tried the wakeonlan command and the gWakeOnLAN gui. I ran wireshark on machine_2 to see if it's receiving the wol packet, and it's not receiving anything when I send the packet through port 9 (default) or port 7, but it does receive them on any other port I tried (e.g. 22). Not sure if the port matters for WOL. Either way, the computer does not turn on regardless of what port I send the magic packet in. How do I fix or troubleshoot this issue?
Asked by johnymm (113 rep)
Jan 10, 2025, 10:01 PM
Last activity: Jan 10, 2025, 11:49 PM