WakeOnLAn
James Bensley
jwbensley at gmail.com
Thu Apr 30 00:31:20 CDT 2009
Hi Mad,
Basically I have just been over this on the CentOS list as we use
CentOS on our PowerEdge 2970's and NF500 III's.
The two main things to consider are (when using the dual on board Nics
that most Dell servers have as did ours):
My tests for my servers showed me that wol would only work on the
first port of the Nic card and not the second (physically labeled on
the server 1 and 2, only 1 would work for wol)
Also to actually get wol to work you need to enabled it for the Nic
card by adding the following to ifcfg-eth0 or ifcfg-eth1 (both of
which for me were located in /etc/sysconfig/networking/devices/);
ETHTOOL_OPTS="wol g"
This sets the ethtool option "wol" to a value of "g" when the card is
turned on. "g" is the only available wol mode available for me. I
found this out via running:
user at machine #] sudo /sbin/ethtool eth0
<output snipped>
...
Wake on LAN modes supporeted: g
current wake on LAN state: d
...
<output snipped>
That isn't word for word but you will see the different modes your Nic
card can support (I don't know what they all are or what mode "g" is
but it works! Where it says "current wake on LAN mode: "d" that means
"disabled". So you could add the above entry to the interface config
files as mentioned and restart networking (sudo /etc/init.d/network
restart) OR just run the following command then run the above one
again to see the info for your interface and you will see the "d" has
changed to your chosen mode, i.e. "g":
user at machine #] sudo /sbin/ethtool -s eth0 wol g
Now all you need is a program to send the "Magic Packet" to the server
which from windows can be done easily with
http://www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx (there is also
a CLI version on the website if you don't want a GUI, these are
windows only) or from one of your CentOS boxes using the built in
ether-wake tool or get "wol" its an rpm package, google it and you
will find it in seconds.
HTH,
Regards James ;)
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V-
PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++
------END GEEK CODE BLOCK------
More information about the Linux-PowerEdge
mailing list