Wiki source code of Wake on Lan

Version 4.1 by Thomas Coelho on 2022/12/20 13:47

Hide last authors
Thomas Coelho 1.1 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
Thomas Coelho 4.1 5 Wake on Lan is technique to power on a computer over the network by sending a specific data paket ("Magic paket"). This does not require administrative privileges. You only need access to computer on the same network.
Thomas Coelho 1.1 6
7 Our computers have an IDLE Timeout, which turns them off when they are not used (no user processes are running). In former times it was possible to request a flag which disabled this feature. To save power we no longer support this.
8
9 With a little bit of information you can wake up your computer from the login node. The information you need is the hardware address (mac) of the computer. This can be read, when you are logged in to the computer.
10
11 Open a terminal windows an type "ip a". This shows all network interfaces. The important interface starts with "en" (enp0s31f6 in the example). The screen shot show the output of the ip command with the mac addresses marked by the circle.
12
13 [[image:attach:mac_adresse.png||alt="Output of ip"]]
14
15 The mac address is a 48 bit hexadecimal encoded number.
16
17 To wake up the machine, you need to login to "**iota**". Kappa does not work, because it's on a different network then the clients computers.
18
19 Run the command
20
Thomas Coelho 3.1 21 {{code language="bash"}}wakeon RECORDED-MAC-ADDRESS{{/code}}
22
23
24 With RECORDED-MAC-ADDRESS replaced by the numbers recorded from the "ip a" output.
25
26 After some minutes you should be able to ssh to your machine.