There are several steps to enable Wake on LAN. First, it must be enabled in the BIOS, and then it must be enabled on the network card itself.
On Windows, you can find the settings in the advanced settings dialog for your network adapter. For Linux, you can use the ethtool command.
Use ethtool eth0 to display the current status for the eth0 interface:
Settings for eth0: Wake-on: g
Use ethtool -s eth0 wol XYZ to set this parameter, but remember that not all cards support all WoL methods and that some cards remember the settings upon reboot, while others do not (then you need to add this command to 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.
source share