Outils pour utilisateurs

Outils du site


Panneau latéral

Menu tree

welcome:ubuntu:wake-on-lan

Ceci est une ancienne révision du document !


Wake on LAN (WOL) for Ubuntu 20

Difficulté
Facile
dito Proxmox but with orhter path for ethtool:

nano /etc/systemd/system/wol.service
    [Unit]
    Description=Wake-on-LAN for <interface id>
    Requires=network.target
    After=network.target

    [Service]
    ExecStart=/sbin/ethtool -s <interface id> wol g
    ExecStop=/sbin/ethtool -s <interface id> wol g

    [Install]
    WantedBy=multi-user.target 
systemctl start wol.service
systemctl enable wol.service
systemctl is-enabled wol.service
systemctl daemon-reload 

Wake on LAN (WOL) for Ubuntu 18 (Bionic)

On a server without GUI = with “Netplan” and without “Network-manager”
https://askubuntu.com/questions/1053302/wake-on-lan-not-working-if-i-turn-of-with-ubuntu

Send a Magic Packet at startup for Ubuntu 20
Useful to wakeup a server when the client starts.

$ sudo nano /etc/systemd/system/wol-omv.service
[Unit]
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/local/bin/wol-omv.sh

[Install]
WantedBy=default.target 
sudo /usr/local/bin/wol-omv.sh
#!/bin/bash

/usr/sbin/etherwake -i enp34s0 69:70:BC:AD:4B:A2 
systemctl start wol-omv.service
systemctl enable wol-omv.service
systemctl daemon-reload 
welcome/ubuntu/wake-on-lan.1659883212.txt.gz · Dernière modification: 2022/08/07 14:40 de arnaud

DokuWiki Appliance - Powered by TurnKey Linux