Skip to main content

Enable Wake On LAN on Debian

· One min read
Mohammad Zakery

Wake On Lan on Debian

Wol

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