On Linux, if you want to wake-on-lan, type it on the command line, or if you can't remember the MAC address, write it in a shell script.
Specifically, what we are doing is that if you specify the MAC address of the NIC that is listening for the magic packet and broadcast the magic packet to the entire LAN, that NIC will react and turn on the power. It is the distribution that I said.
Ubuntu18.04 requires sudo apt install wake onlan
in advance.
wol-comp1.sh
#!/bin/bash
wakeonlan 00:17:42:c7:56:40
Recommended Posts