2008年6月26日 星期四

Wake up computer on Lan from Ubuntu

1. ethtool is a net driver diagnostic and tuning tool for linux. using it to check the network card settings

sudo ethtool eth0
--
.
Wake-on: d
.

2. change wake-on setting to g (Wake on MagicPacket)

sudo ethtool -s eth0 wol g

3. install etherwake, a tool to send magic Wake-on-LAN packets

sudo apt-get install etherwake

4. create a file which lists mac and hostname/ip pairs

sudo vi /etc/ethers
--
MAC_ADD Hostname
MAC_ADD IP_ADD

5. send wol to your target host

sudo etherwake MAC_ADD
# or hostname you have specifed

沒有留言: