Linux command
wakeonlan 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Wake computer
wakeonlan [00:11:22:33:44:55]
Wake with broadcast address
wakeonlan -i [192.168.1.255] [00:11:22:33:44:55]
Wake on specific port
wakeonlan -p [9] [00:11:22:33:44:55]
Wake from file
wakeonlan -f [hosts.txt]
Verbose output
wakeonlan -v [00:11:22:33:44:55]
说明
wakeonlan sends Wake-on-LAN (WoL) magic packets to power on remote computers over the network. A magic packet is a specially formatted UDP broadcast containing the target machine's MAC address repeated 16 times, which the network interface card recognizes even while the system is powered off. The tool sends packets to the network broadcast address on UDP port 9 by default, reaching sleeping hosts on the local subnet. A custom broadcast address can be specified for directed broadcasts across subnets, and an alternative port can be used for systems configured on port 7. Multiple machines can be woken at once by reading MAC addresses from a file with one address per line. The target computer must have WoL support enabled in its BIOS/UEFI settings and network interface driver, and must remain physically connected to the network.
参数
- -i _ADDRESS_
- Broadcast address.
- -p _PORT_
- UDP port (default 9).
- -f _FILE_
- Read MACs from file.
- -v
- Verbose output.
FAQ
What is the wakeonlan command used for?
wakeonlan sends Wake-on-LAN (WoL) magic packets to power on remote computers over the network. A magic packet is a specially formatted UDP broadcast containing the target machine's MAC address repeated 16 times, which the network interface card recognizes even while the system is powered off. The tool sends packets to the network broadcast address on UDP port 9 by default, reaching sleeping hosts on the local subnet. A custom broadcast address can be specified for directed broadcasts across subnets, and an alternative port can be used for systems configured on port 7. Multiple machines can be woken at once by reading MAC addresses from a file with one address per line. The target computer must have WoL support enabled in its BIOS/UEFI settings and network interface driver, and must remain physically connected to the network.
How do I run a basic wakeonlan example?
Run `wakeonlan [00:11:22:33:44:55]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i _ADDRESS_ do in wakeonlan?
Broadcast address.