Wake On LAN: di Ubuntu 18.04: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
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..."
 
Onnowpurbo (talk | contribs)
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


==Referensi==
==Referensi==

Revision as of 04:51, 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

Referensi

Pranala Menarik