mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore: added articles about wake on lan
This commit is contained in:
34
knowledge base/wake a host from lan.md
Normal file
34
knowledge base/wake a host from lan.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Wake a host from LAN
|
||||
|
||||
The host needs to support wake-on-LAN and have it enabled.
|
||||
|
||||
## Table of contents <!-- omit in toc -->
|
||||
|
||||
1. [TL:DR](#tldr)
|
||||
1. [Further readings](#further-readings)
|
||||
1. [Sources](#sources)
|
||||
|
||||
## TL:DR
|
||||
|
||||
Use [`wakeonlan`][wakeonlan].
|
||||
|
||||
## Further readings
|
||||
|
||||
- [`wakeonlan`][wakeonlan]
|
||||
|
||||
## Sources
|
||||
|
||||
All the references in the [further readings] section, plus the following:
|
||||
|
||||
- [How to wake up computers using Linux by sending magic packets]
|
||||
|
||||
<!-- project's references -->
|
||||
<!-- internal references -->
|
||||
|
||||
[further readings]: #further-readings
|
||||
|
||||
[wakeonlan]: wakeonlan.md
|
||||
|
||||
<!-- external references -->
|
||||
|
||||
[how to wake up computers using linux by sending magic packets]: https://www.cyberciti.biz/tips/linux-send-wake-on-lan-wol-magic-packets.html
|
||||
47
knowledge base/wakeonlan.md
Normal file
47
knowledge base/wakeonlan.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# wakeonlan
|
||||
|
||||
## Table of contents <!-- omit in toc -->
|
||||
|
||||
1. [TL:DR](#tldr)
|
||||
1. [Further readings](#further-readings)
|
||||
1. [Sources](#sources)
|
||||
|
||||
## TL:DR
|
||||
|
||||
```sh
|
||||
# Install `wakeonlan`.
|
||||
brew install 'wakeonlan'
|
||||
|
||||
# Send a WOL package to the host.
|
||||
wakeonlan '11:22:33:44:55:66'
|
||||
|
||||
# Simulate.
|
||||
wakeonlan -n '11:22:33:44:55:66'
|
||||
|
||||
# Limit the magic package to a specific network or host.
|
||||
# Use a network's *broadcast* address unless you have a static ARP table
|
||||
# configured so the magic packet can actually reach the single host.
|
||||
wakeonlan -i '192.168.1.255' '11:22:33:44:55:66'
|
||||
wakeonlan -n '11:22:33:44:55:66' -i '192.168.100.3'
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [`man` page][man page]
|
||||
|
||||
## Sources
|
||||
|
||||
All the references in the [further readings] section, plus the following:
|
||||
|
||||
- [wake a host from lan]
|
||||
|
||||
<!-- project's references -->
|
||||
<!-- internal references -->
|
||||
|
||||
[further readings]: #further-readings
|
||||
|
||||
[wake a host from lan]: wake%20a%20host%20from%20lan.md
|
||||
|
||||
<!-- external references -->
|
||||
|
||||
[man page]: https://www.unix.com/man-page/debian/1/WAKEONLAN/
|
||||
Reference in New Issue
Block a user