wake on lan

Sometimes i need to wake up my desktop when i work from other place. To access cvs or encode some file. It is turned off automatic every 9pm. Ive setup openvpn connection to gateway.

First find out your desktop hardware address:

ifconfig

Note eth0 broadcast address and save hardware address to a file on gateway


edit rc.local or boot.local on desktop, add:

ethtool -s eth0 wol g

And run it from command line, then shutdown -h now


On gateway type this to wake it up, takes several minutes before we can ping

wakeonlan -i 192.168.1.255 -f desktop -p 7

Or

wakeonlan -i BROADCASTADDR HARDWAREADDR -p 7

Output:
Sending magic packet to 192.168.1.255:9 with 00:50:8D:86:XX:XX


http://ubuntuforums.org/showthread.php?t=234588

Comments

Popular posts from this blog

Tips Jika Mobil Anda Habis Bensin LOL!

Setting open office u label tom & jerry