Linux Wake on Lan

Check if your interface has support and if the BIOS configuration is OK.

ethtool ethx | grep -i 'support'

hamilton@saygon:~$ sudo ethtool eth0 | grep -i 'support'
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
Supports auto-negotiation: Yes
Supports Wake-on: pumbg

Available options  are:

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.

If "g" option is not ok, please run:

ethtool -s eth0 wol g

Get your MAC addrees before rebooting:

hamilton@saygon:~$ ifconfig | grep HWaddr
eth0      Link encap:Ethernet  HWaddr 00:1c:c0:c3:ed:fd  

To wake your PC, make sure that you are running this command from another PC inside the same network

etherwake 00:1c:c0:c3:ed:fd

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: