[CentOS] ether-wake

Tue May 19 00:35:40 UTC 2020
R C <cjvijf at gmail.com>

when I found out that ether-wake only did raw ether packets, I notoced 
there's also a wol in the distro,  that broadcasts wake up packets using 
udp, that I can redirect on cisco equipment.  It's working now.


thanks,


Ron



On 5/18/20 9:45 AM, Simon Matter via CentOS wrote:
>> Actually you are not correct.
>>
>>
>> 1st: I didn't quote the wikipedia article,  someone sent that as an
>> answer to my previous post.
>>
>>      (similar mindset probably, as in your response)
>>
>> 2: You are wrong,  broadcast packets, like for example DHCP, and also
>> WOL (if UDP), can be routed, by
>>
>> the means of ip helper addresses and directed broadcasts on Cisco
>> equipment
>>
>>
>> Also, you like others seem to have a very hard time understanding what
>> is wriiten/asked.  I asked "What port number does
>>
>> ether-wake us",  ether-wake being part of Centos So what I am looking
>> for is a number,  like 9, 37 or something in case it is
> Part of the problem is that there is no THE WOL package as there are
> different forms of WOL and their packages.
>
> One way is using UDP port 9 as you said. I was using the script below to
> do so (using socat) but I can tell you that this method doesn't work for
> all devices.
>
> #!/bin/bash
>
> HWADDR="$1"
> DEST_IP="255.255.255.255"
> DEST_PORT="9"
>
> # The magic packet is a broadcast frame containing anywhere within its
> payload
> # 6 bytes of all ones (FF FF FF FF FF FF in hexadecimal), followed by sixteen
> # repetitions of the target computer's 48-bit MAC address.
> MAGIC="\xFF\xFF\xFF\xFF\xFF\xFF"
> for ((CNT=0; CNT < 16; CNT++)); do
>    MAGIC="${MAGIC}\x${HWADDR//:/\x}"
> done
>
> echo -en "$MAGIC" | socat -T1 -u STDIO \
>    UDP-DATAGRAM:${DEST_IP}:${DEST_PORT},broadcast
>
> Kind regards,
> Simon
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos