HowTo Enable Wake-on-LAN on CentOS


WHAT YOU NEED
1) Enable WOL in BIOS on NIC
2) Enable WOL on NETWORKCARD
3) Wake up the computer from local network

$ su
$# ethtool eth0
.
Supports Wake-on: g ## THIS MEAN NIC SUPORT WAKE ON LAN
Wake-on: d ## FUTURE IS TURN OFF
.

IF YOU WANT TURN ON THIS FUTURE YOU CAN USE CODE
#ethtool -s eth0 wol g

IF YOU WANT EVERY TIME on startup, turn on this future you can use this

$# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=EThernet
ONBOOT=yes
ETHTOOL_OPTS=”wol g”
$# chkconfig network on

!! IF yours computer lose the power supply you’ll need to boot the computer and turn off again. !!

SORUCE : http://linux-bsd-sharing.blogspot.sk

Facebook Comments