Difference between revisions of "Wake On LAN: di Ubuntu 18.04"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "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...")
 
 
(3 intermediate revisions by the same user not shown)
Line 28: Line 28:
  
  
 +
==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
  
 
==Referensi==
 
==Referensi==

Latest revision as of 11:55, 24 January 2021

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

Referensi

Pranala Menarik