[CentOS] Getting Wake on lan to work

Wed Oct 20 18:38:43 UTC 2010
Steve Clark <sclark at netwolves.com>

On 10/20/2010 02:13 PM, centos at crighton.me.uk wrote:
> On Wed, 20 Oct 2010 14:04:51 -0400, you wrote:
>
>
>    
>> To get mine to work under fedora I had to run ethtool and turn on the
>> wol option.
>> Also it seemed to get reset after used wol to start it up so in my
>> rc.local I put
>> /sbin/ethtool -s eth1 wol g
>> /sbin/ethtool -s eth0 wol g
>>      
> ethtool -s eth0 wol g results in a message "Cannot get current
> wake-on-lan settings: Operation not supported" even though both the
> motherboard and NIC do support WOL.
>
>    
Hmm...

[root at centostest ~]# ethtool eth0
Settings for eth0:
         Supported ports: [ TP MII ]
         Supported link modes:   10baseT/Half 10baseT/Full
                                 100baseT/Half 100baseT/Full
         Supports auto-negotiation: Yes
         Advertised link modes:  10baseT/Half 10baseT/Full
                                 100baseT/Half 100baseT/Full
         Advertised auto-negotiation: Yes
         Speed: 100Mb/s
         Duplex: Full
         Port: MII
         PHYAD: 32
         Transceiver: internal
         Auto-negotiation: on
         Supports Wake-on: pumbg
         Wake-on: d
         Current message level: 0x00000007 (7)
         Link detected: yes
[root at centostest ~]# ethtool -s eth0 wol g
[root at centostest ~]# uname -a
Linux centostest 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 
i686 athlon i386 GNU/Linux
[root at centostest ~]# ethtool eth0
Settings for eth0:
         Supported ports: [ TP MII ]
         Supported link modes:   10baseT/Half 10baseT/Full
                                 100baseT/Half 100baseT/Full
         Supports auto-negotiation: Yes
         Advertised link modes:  10baseT/Half 10baseT/Full
                                 100baseT/Half 100baseT/Full
         Advertised auto-negotiation: Yes
         Speed: 100Mb/s
         Duplex: Full
         Port: MII
         PHYAD: 32
         Transceiver: internal
         Auto-negotiation: on
         Supports Wake-on: pumbg
         Wake-on: g
         Current message level: 0x00000007 (7)
         Link detected: yes
[root at centostest ~]#

-- 
Stephen Clark
*NetWolves*
Sr. Software Engineer III
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
http://www.netwolves.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20101020/67560184/attachment-0005.html>