Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

LEAP 15.1 Wake-On-LAN not working on my home server

$
0
0
Hello everyone,

i recently set up a little home server and continue configuring it from time to time according to my needs. Now i wanted to set up a Wake-On-LAN function for my server.
I activated Ethernet wakeup on the server's BIOS and set the wol g option with ethtool like this:

Code:

sudo ethtool -s eth0 wol g
i added a systemd daemon running the above argument on startup to ensure the server is always configured for the magic packet wakeup. Now i tried two things:
first i suspended the system to RAM because this is what i usually want to do in the future if the server is not in use with
Code:

sudo systemctl suspend
(rtcwake does not work for me for some reason)
I then use a python script on my windows mashine to send the magic package:

Code:

import socket


mac_address = bytearray.fromhex("My server's MAC address")
package = bytearray.fromhex("ff ff ff ff ff ff")

for i in range (0, 16):
    package += mac_address[0:6]

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.settimeout(10)
server_address = ("My server's network address", 9)

try:
    s.sendto(package, server_address)
except socket.error:
    print("error while sending package")
except socket.timeout:
    print("timed out while sending wakeup")
print("Sent wakeup...")
try:
    response = s.recv(1024)
    print(response)
except socket.error as msg:
    print("Error while receiving response: ", msg)

now when i run the script as the server is suspended...nothing happens the socket times out while waiting for the answer and the server keeps sleeping.
I then tried a complete shutdown with
Code:

sudo shutdown -P +0
to check if the server would wake from this state but again nothing happens when running the script
I checked the package sent with wireshark and everything seems to be okay there is the Ethernet protocol header the IP header and the UDP header and then the correct data (6x FF 16x MAC-address)
but the server just wont wake up. I have really no idea what is going wrong and i also have no idea what logs i could check for any information. Could it be my router possibly messing things up as not sending the package to a shutdown mashine?
I use a Fritzbox 7490 as an access point for my windows mashine and the server is connected directly to the main router namely a Telekom Speedport Pro. But i can not find any configuration in the Speedport which seems to fit the WOL purpose so i am a bit lost.

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>