Mohammad Zakery
Posted on March 6, 2023
Wake On Lan on Debian
1.Install ethtool :
sudo apt install ethtool
2.Checking the Interface :
ip a
3.Select the interface you want to use. For Example :
enp3s0
4.Turn wake on lan On Temporarily :
sudo ethtool --change enp3s0 wol g
5.Check the WOL status of the interface with the following command :
sudo ethtool enp3s0
6.find the bellow section :
Wake-on: g
Making wake on lan Permanent
7.find ethtool directory :
which ethtool
in my os : /usr/sbin/ethtool
8.Create wol.service in /etc/systemd/system/ with the following content.
[Unit]
Description=Enable Wake On Lan
[Service]
Type=oneshot
ExecStart = /usr/sbin/ethtool --change enp3s0 wol g
[Install]
WantedBy=basic.target
9.Enable The Service :
sudo systemctl daemon-reload
sudo systemctl enable wol.service
💖 💪 🙅 🚩
Mohammad Zakery
Posted on March 6, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.