Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Enable Wake On LAN on Debian
Mohammad Zakery
Mohammad Zakery

Posted on

     

Enable Wake On LAN on Debian

Wake On Lan on Debian

WOL Debian


1.Install ethtool :

sudo apt install ethtool
Enter fullscreen modeExit fullscreen mode

2.Checking the Interface :

ip a
Enter fullscreen modeExit fullscreen mode

3.Select the interface you want to use. For Example :

enp3s0
Enter fullscreen modeExit fullscreen mode

4.Turn wake on lan On Temporarily :

sudo ethtool --change enp3s0 wol g
Enter fullscreen modeExit fullscreen mode

5.Check the WOL status of the interface with the following command :

sudo ethtool enp3s0
Enter fullscreen modeExit fullscreen mode

6.find the bellow section :

Wake-on: g
Enter fullscreen modeExit fullscreen mode

Making wake on lan Permanent

7.find ethtool directory :

which ethtool
Enter fullscreen modeExit fullscreen mode

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=oneshotExecStart = /usr/sbin/ethtool --change enp3s0 wol g[Install]WantedBy=basic.target
Enter fullscreen modeExit fullscreen mode

9.Enable The Service :

sudo systemctl daemon-reloadsudo systemctl enable wol.service
Enter fullscreen modeExit fullscreen mode

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Family 👨‍👩‍👧 DevOps 🐧 Boxing 🥊
  • Work
    Devops
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp