Wake On LAN: di Ubuntu 18.04
Revision as of 11:55, 24 January 2021 by Onnowpurbo (talk | contribs) (→Di Desktop yang akan menyalakan)
Sumber: https://www.techrepublic.com/article/how-to-enable-wake-on-lan-in-ubuntu-server-18-04/
Install ethtool
sudo apt update sudo apt -y install ethtool
Cek Nama Interface
ip a
Contoh hasil
enp3s0 4c:e6:76:1f:15:4c enp2s0 4c:e6:76:1f:15:4c bond0 4c:e6:76:1f:15:4c
Aktifkan WOL
sudo ethtool -s INTERFACE wol g
Contoh
sudo ethtool -s enp3s0 wol g sudo ethtool -s enp2s0 wol g sudo ethtool -s bond0 wol g
Make It STICK
Edit
sudo vi /etc/systemd/system/wol.service
Isi dengan
[Unit] Description=Configure Wake On LAN [Service] Type=oneshot ExecStart=/sbin/ethtool -s enp3s0 wol g ExecStart=/sbin/ethtool -s enp2s0 wol g [Install] WantedBy=basic.target
Jalankan
sudo systemctl daemon-reload sudo systemctl enable wol.service sudo systemctl start wol.service
Di Desktop yang akan menyalakan
sudo apt update sudo apt -y install wakeonlan
Untuk menyalan komputer / server remote
wakeonlan MAC
Contoh,
wakeonlan 4c:e6:76:1f:15:4c wakeonlan 4c:e6:76:1f:15:4c