There are several steps on enabling Wake on LAN. First it must be enabled in BIOS and second it must be enabled on the network card itself.
In Windows, you can find the settings under the advanced options dialog box for your network adapter. For Linux, you can use ethtool
command.
Use ethtool eth0
to display current status for eth0 interface:
Settings for eth0:
Wake-on: g
Use ethtool -s eth0 wol XYZ
to set the option, but remember that not all cards support all WoL methods and that some cards do remember the settings upon reboot, but others do not (then you need to add this command to your startup scripts).
wol p|u|m|b|a|g|s|d...
Sets Wake-on-LAN options. Not all devices support this. The argument to this option is a string of
characters specifying which options to enable.
p Wake on phy activity
u Wake on unicast messages
m Wake on multicast messages
b Wake on broadcast messages
a Wake on ARP
g Wake on MagicPacket(tm)
s Enable SecureOn(tm) password for MagicPacket(tm)
d Disable (wake on nothing). This option clears all previous options.