On Sun, 2020-05-17 at 20:25 -0600, R C wrote:> Ok, I get that, found it before; "typically sent as a UDP datagram to > port 0, 7 or 9, or directly over Ethernet as EtherType 0x0842" > > > The keyword being 'typically', but what is it that ether-wake actually > uses/does? (I need to forward a WOL packet to a different > > vlan on some Cisco hardware, between two Centos machines). >WoL packets are not routeable/forwardable. They are Layer 2 broadcast packets that contain the MAC address of the machine that needs to be woken up. But since you quoted the Wikipedia article on WoL you would know that and it specifically says what the magic packet is and does. The format of the packet is unimportant, all that happens is that the ethernet *card* receives the packet, sees that it's a magic WoL packet for that card and turns on the hardware "wakeup" line to the machine. The packets need to be sent on the same network as the target computer - we did it a while ago for a very large complex network and it needed a box behind every single router that could be commanded to send out the WoL packet for a specific MAC address. We eventually abandoned it. P.
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 actually using UDP. What I am NOT looking for is some patronizing answer disconnected from the question. I really wonder why you feel the need to go out on a branch to start lecturing and quoting answers that are not asked for. If you don't know the answer, simply don't reply. No one benefits, by you sending email here that doesn't have much of anything to do with the topic. Ron On 5/18/20 2:59 AM, Pete Biggs wrote:> On Sun, 2020-05-17 at 20:25 -0600, R C wrote: >> Ok, I get that, found it before; "typically sent as a UDP datagram to >> port 0, 7 or 9, or directly over Ethernet as EtherType 0x0842" >> >> >> The keyword being 'typically', but what is it that ether-wake actually >> uses/does? (I need to forward a WOL packet to a different >> >> vlan on some Cisco hardware, between two Centos machines). >> > WoL packets are not routeable/forwardable. They are Layer 2 broadcast > packets that contain the MAC address of the machine that needs to be > woken up. But since you quoted the Wikipedia article on WoL you would > know that and it specifically says what the magic packet is and does. > > The format of the packet is unimportant, all that happens is that the > ethernet *card* receives the packet, sees that it's a magic WoL packet > for that card and turns on the hardware "wakeup" line to the machine. > > The packets need to be sent on the same network as the target computer > - we did it a while ago for a very large complex network and it needed > a box behind every single router that could be commanded to send out > the WoL packet for a specific MAC address. We eventually abandoned it. > > P. > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
> actually using UDP. What I am NOT looking for is some patronizing answer > disconnected from the question. > > > I really wonder why you feel the need to go out on a branch to start > lecturing and quoting answers that are not asked for. > > > If you don't know the answer, simply don't reply. No one benefits, by > you sending email here that doesn't > > have much of anything to do with the topic.Oh, well. You try and be helpful, get abuse back. That's life I suppose. P.
> 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 isPart 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