Using Wake On Lan so you don't have to use your fingers
📆 2025-03-14 14:52
WakeOnLan is a very useful feature, especially if you're a lazy person. With WakeOnLan you can start your machines without walking or using your fingers and push the power button.
What you need
You only need 2 things: wakeonlan and ethtool. You can easily install them with:
`wakeonlan` is needed on the machine you'll be using to send the wake up command while `ethtool` is used to configure your network card.
Using ethtool to enable Wake-on-LAN
- Find the Network Adapter (in my case it's `enp1s0`)
- Check if WakeOnLan is supported
You should see something like ` Supports Wake-on: pumbg`. To enable WakeOnLan you have to:
Right now WakeOnLan is enabled but the setting is not persistent.
Persist Wake-on-LAN After Reboot
Add the following and replace `enp1s0` with your network card
Enable the service:
Using wakeonlan to start your computers
In order to wake up your computers with a magic wakeonlan packet you need to know it's MAC address. You can easily find it with `sudo ethtool -P enp1s0` command. Once you get the MAC address you can easily wake the computer up from another computer using the wakeonlan command:
I have create a small bash script to wake up all my 3 Lenovo M53's at once: