Wake on lan on Linux

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.

Specific example of shell script

wol-comp1.sh


#!/bin/bash
wakeonlan 00:17:42:c7:56:40

Recommended Posts

Wake on lan on Linux
Enable WOL (Wake On LAN) on Manjaro KDE
Daemonizing processes on Linux
jblas on Arch Linux
Linux (WSL) on Windows
NAT router on Linux
Boot CentOS 8 from Windows 10 with Wake On LAN
Monitor traffic on Linux
Update vscode on linux
Try NeosVR on Linux
Check capacity on Linux
LiveUSB creation on Linux
Linux operation on Win10
Check if the LAN cable is disconnected on Linux
I want to do Wake On LAN fully automatically
NTP configuration memo on Linux
Install Minecraft on Arch Linux
Install Linux on your Chromebox
Downgrade Mcomix on Arch Linux
Monitor disk usage on Linux
Use Github Desktop on Linux
Install the JDK on Linux
Elixir = Comfortable on Linux Mint
Recording and playback on Linux
Check TTL on Linux router
Put jenv on Amazon Linux
Easy df command on Linux
Linux on Windows -1-: debian introduction
Install tomcat 5.5 on Amazon Linux.
Introducing Elixir on Linux Mint
Use sshpass on Amazon linux2
Install Homebrew on Amazon Linux 2
Paste the link on linux
Install strongSwan 5.9.1 on Amazon Linux 2
Linux environment construction (on WSL environment)
Run FreeBSD on Linux + qemu
Use Linux on Windows 10 (WSL2)
Create a Python script for Wake on LAN (NAT traversal Wake on LAN [5])
Setting up OpenSSH on Arch Linux
Use host.docker.internal on linux (docker-compose required)
Install Python Pillow on Amazon Linux
Easy copy to clipboard on Linux
Install oracle java8 on amazon linux2
Try installing OpenAM on Amazon Linux
WSL2 ~ Linux on Windows ~ (Part 1: Introduction)
Install CUDA on Linux Mint Mate 20
Install Arch Linux on DeskMini A300
Completion of docker command on Linux
Run a Linux server on GCP
How to install VMware-Tools on Linux
Install pyenv on EC2 (Amazon Linux)
[Linux] I installed CentOS on VirtualBox
Turn Raspberry Pi into a router (Wake on LAN [4] over NAT)
Enjoy edge computing on Alpine Linux
Create a Linux environment on Windows 10
Make Live USB on Alpine Linux
Linux
[Linux] Docker environment construction on Redhat
Use Chrome Remote Desktop on Linux
[Note] Install Imagick on Amazon Linux2
[Note] Run Django on Amazon Linux 2