• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

examples/H11-Nov-2011-2320

ChangesH A D11-Nov-20111.6 KiB5736

MANIFESTH A D11-Nov-2011155 98

META.ymlH A D11-Nov-2011295 119

Makefile.PLH A D11-Nov-2011447 1711

READMEH A D11-Nov-20113.3 KiB10263

SIGNATUREH A D11-Nov-20111.1 KiB3124

wakeonlanH A D11-Nov-20115.1 KiB21777

README

1
2This is some premature documentation for this project. Feel free to contact
3with comments or additions. (good or bad)
4
5	Jose Pedro Oliveira <jpo[at]di.uminho.pt>
6	Ico Doornekamp <ico[at]edd.dhs.org>
7
8
9
101. What is wakeonlan
112. How does it work ?
123. How is it implemented here ?
134. Known to work hardware
14
15
16
171. What is wakeonlan
18
19This script sends 'magic packets' to wake-on-lan enabled ethernet
20adapters, in order to switch on the called PC.
21
22
23
242. How does WOL work ?
25
26WOL is based on the following principle :
27
28When the PC shuts down, the NIC still gets power, and keeps listening on
29the network for a 'magic' packet to arrive. This packet must contain a
30certain byte-sequence, but can be encapsulated in any kind of packet
31(IPX, IP, anything). Take a look at the code for the magic sequence.
32
33This program uses UDP for sending the packet. The complete UDP packet, sent
34over an ethernet interface, looks something like this
35
36[ethernet header][IP header][UDP header][Magic sequence][CRCS]
37
38The only goal of the script is to send this packet over the network. It
39expects no returning data, since the NIC only listens, and does not reply
40anything.
41
42For a more detailed description of the protocol, see the whitepaper
43available in the followin AMD web page:
44	http://www.amd.com/products/npd/overview/20212.html
45
46
47
48
493. How is it implemented here ?
50
51The scripts takes 2 arguments, the MAC-address of the NIC, and an IP
52address. The IP-address is tricky :
53
54For a NIC on your local subnet, use the broadcast-address of this subnet.
55(e.g. subnet 192.168.10.0 with netmask 255.255.255.0, use 192.168.10.255)
56
57For waking up a PC on a network behind one or more routers, some tricks must
58be used. When the routers forward directed subnet broadcasts, it is possible
59to use the broadcast address of the destination network. The problem is that
60many routers dont forward broadcast packets, so the packet will never arrive
61at the network.
62
63It is possible to send the packet to the remote net however, by sending it
64to the IP address of another host on that network that's alive at that
65moment. The remote hosts will probably ignore the packet, but it has been
66seen by the listening NIC that's also on the same subnet, and it will turn
67on the computer... Feel free to experiment on this.
68
69
70
714. Known-to-work hardware :
72
73
74- 3Com 3c905B Cyclone 100baseTx on an Abit BP6 Motherboard (Ico Doornekamp)
75
76- Intel EtherExpress Pro (i82557 with management chip built onto an IBM
77  IntelliStation motherboard (Sean-Paul Rees)
78
79- Intel EtherExpress PRO/100+ (chipset 82559) with a PXE boot agent on
80  an ASUS P2B motherboard (Jose Pedro Oliveira)
81
82- Motherboard: ASUS TUSL2-C
83  BIOS: Award BIOS / Power / Power Up Control / Wake On LAN or PCI Modem [Enable]
84  Network card: Intel Pro/100 S Desktop Adapter (chipset 82550)
85	with PXE boot agent v4.0.22
86  (Jos� Pedro Oliveira)
87
88- Motherboard: ASUS TUSL2-C
89  BIOS: Award BIOS / Power / Power Up Control / Wake On LAN or PCI Modem [Enable]
90  Network card: 3Com Fast Etherlink TX 10/100 PCI (3C905C-TXM)
91	with Managed PC Boot Agent (MBA) v4.30 (build 3)
92	Pre-boot eXecution Environment (PXE) v2.20
93  (Jos� Pedro Oliveira)
94
95- nVidia Corporation nForce2 Ethernet Controller on ASUS and EPOX motherboards.
96  (Antoniu-George)
97
98- Macs: Al Powerbook.
99  Energy Prefs: Wake on ethernet network Administrator access
100  (Denis Ahrens)
101
102