On Friday 01 Jul 2011 16:58:33 RSCL Mumbai wrote:
How can I verify WOL feature ?
Well this thread reminded me of my long lost desire to set up WOL. So heres
what google taught me so far. First enable WOL or whatever its called in your
bios. I have an option called boot on PME
To check whether your NIC supports WOL which i found here [1], run
ethtool eth0
assuming eth0 is the desired interface. you may have to install ethtool using
your distributions package manager. heres what i get.
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
according to the link this line "Supports Wake-on: pg" means it supports wake
up by network ring i have pumbg so i assume i do too.
the next step is run
ethtool -s eth0 wol g
this needs to be done every time you shutdown via a initscript or something
depending on your distro. You also need to prevent linux from shutting down
the network chip completely. You'll find instructions for ubuntu here [2].
Next you need to note down the hardware address of the NIC, And then using the
wakeonlan tool from the remote machine, try and get the desired machine to
boot. The hardware address can be found through ifconfig
wakeonlan <hardware add> (eg wakeonlan 00:16:76:12:64:97)
however i didn't have much luck myself, any pointers will be most welcome.
When the machine shuts down the corresponding light on the router is on so im
assuming the NIC is power on. however when i run wakeonlan 00:16:76:12:64:97
from another machine .. nothing happens.
[1]
http://forums.gentoo.org/viewtopic-t-460044-start-0.html
[2]
http://ubuntuforums.org/showthread.php?t=1380776
--
- Yohan Pereira
"A man can do as he will, but not will as he will" - Schopenhauer