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 com­put­er from local net­work

$ su
$# eth­tool eth0
.
Sup­ports 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
#eth­tool -s eth0 wol g

IF YOU WANT EVERY TIME on start­up, turn on this future you can use this

$# vim /etc/syscon­fig/net­work-script­s/ifcfg-eth0
DEVICE=eth0
TYPE=EThernet
ONBOOT=yes
ETHTOOL_OPTS=“wol g”
$# chk­con­fig net­work on

!! IF yours com­put­er lose the pow­er sup­ply you’ll need to boot the com­put­er and turn off again. !!

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

Face­book Com­ments