Results 1 to 5 of 5

Thread: Ubuntu 24.04 - Wake on Lan - wol

  1. #1
    Join Date
    Jul 2024
    Beans
    3

    Unhappy Ubuntu 24.04 - Wake on Lan - wol

    Hi all,
    I dont know why, but my search doesnt show my any hits regarding wol/ wake on lan.

    I am pretty new to Ubuntu, but i could flee finaly from windows
    Now I would like to enable wol.

    I set a static IP on my router, where i can force wol.
    on my Ubuntu 24.04 i installed ethtool and activated wol by using "sudo ethtool -s <nic> wol g"

    When i shut down the computer i can wake up my server using the gui from my router.
    but, in a unspecific time, wake on lan does not work and i discoverd, that my wol on my nic is disabled "wol d".

    How can i set this parameter permanent?
    I found some documents which ask to edit the /etc/network/interfaces file. BUT, i dont have that file and if i try to create it by "sudo echo > inferfaces" it says no permission.

    can please some expert can help Thank you

  2. #2
    Join Date
    May 2010
    Beans
    3,416

    Re: Ubuntu 24.04 - Wake on Lan - wol


  3. #3
    Join Date
    Jul 2024
    Beans
    3

    Re: Ubuntu 24.04 - Wake on Lan - wol

    Hi,

    thanks for the quick response. I try it, but the nic is after reboot still not in the wol status.
    it seems like the service is not running at the startup.

    xxx@xxx:~$ sudo systemctl status wakeonlan.service
    ○ wakeonlan.service - Enable Wake On Lan
    Loaded: loaded (/usr/lib/systemd/system/wakeonlan.service; enabled; preset: enabled)
    Active: inactive (dead) since Tue 2024-07-16 17:23:56 CEST; 3min 5s ago
    Main PID: 1126 (code=exited, status=0/SUCCESS)
    CPU: 5ms


    Jul 16 17:23:56 xxx systemd[1]: Starting wakeonlan.service - Enable Wake On Lan...
    Jul 16 17:23:56 xxx systemd[1]: wakeonlan.service: Deactivated successfully.
    Jul 16 17:23:56 xxx systemd[1]: Finished wakeonlan.service - Enable Wake On Lan.

    ethtool:
    Supports Wake-on: pumbg
    Wake-on: d
    Link detected: yes

  4. #4
    Join Date
    Jul 2024
    Beans
    3

    Re: Ubuntu 24.04 - Wake on Lan - wol

    Solved:
    i created a yaml file in /etc/netplan/50.wol.yaml
    include this:

    network:
    ethernets:
    enp3s0:
    dhcp4: true
    wakeonlan: true
    version: 2

  5. #5
    Join Date
    May 2010
    Beans
    3,416

    Re: Ubuntu 24.04 - Wake on Lan - wol

    Please mark as solved

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •