Hello, Friends:
I am trying to build a Wake on LAN packet "manually", this is: whithout any tool intended for that. Or, at least, using the most simple method possible.
Purpose: sometimes I am managing a computer or a device (router, for example) with Linux inside, but with few chances to install my preferred programs, and I wanna wake up another computer on the same LAN. So, as the Magic Packet is has an easy syntax, I am wondering using something simpler, something like:
Code:
echo [MagicPacketForSpecificMAC] | /dev/eth0
or similar.
I have checked the Wake on LAN's Magic Packet specifications (Wikipedia):
Quote:
«The magic packet is a broadcast frame containing anywhere within its payload 6 bytes of all 255 (FF FF FF FF FF FF in hexadecimal), followed by sixteen repetitions of the target computer's 48-bit MAC address, for a total of 102 bytes.»
|
Assuming 11.22:33:44:55:66 is the destination MAC, what would be the best (the most standard, using program/s found in most Linux distributions, or at least at BusyBox) and more compatible (portable through platforms, maybe even Android) way to do this?
Thanks you all.