ethtool can't seem to enable wake-on-LAN (wol) on my NIC
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ethtool can't seem to enable wake-on-LAN (wol) on my NIC
Hi All,
I am trying to turn on my PC over the LAN, and I am having problems. Here is what I have done.
I have changed the BIOS parameters, turned off the PC without fully rebooting the system, and tested the Wake-on-LAN (WOL). The PC turned on and rebooted without any problems. I did this step this way to verify that I set up the BIOS correctly, and I did.
Once the PC fully booted into linux (Fedora 7), I shutdown the system with "shutdown -h now", and I was no longer able to wake the PC over LAN. This meant that linux had disabled WOL on my NIC. So, I have used ethtool to enable it, and here is the response I got.
[root@linux_server ~]# /sbin/ethtool -s eth0 wol g
Cannot get current wake-on-lan settings: Operation not supported
not setting wol
Uhmmm! Now, I am a bit confused why I am not able to enable WOL on my NIC with ethtool.
Then, I tried the following, and here are the responses:
I may be out in left field here, but I am wondering about the driver listed. Is that the driver you would expect, or is it saying this connection is part of a bridge, or what?
You also might try ethtool w/o any parameters other than the device name and see if it gives you any clues or if you see anything suspicious.
Just to make sure we're not missing something obvious, does ifconfig show eth0 to be up?
Thank you for helping me with this problem; I really appreciate it. Here are the answers to your questions. I hope they help.
The connection is part of a bridge. My NIC is integrated onto the motherboard. This NIC is an Intel PRO/100 as you can see from the output of the lspci (see the original post).
When I tried ethtool w/o any parameters other than the device name, I didn't see anything suspicious; this is what I got:
[root@linux_server ~]# /sbin/ethtool eth0
Settings for eth0:
Link detected: yes
When I tried ifconfig, eth0 shows up, and nothing seem suspicious here. Here is its output:
I am wondering if ethtool simply can't handle the fact that eth0 is part of a bridge.
Just to let you know, I have no experience with bridges. I have read an article or two about them and that is it. So forgive me if in my ignorance I say something stupid. :-/ Assuming you want to wake the computer up from the eth0 side of the bridge, I suggest trying to get it working w/o the bridge in place. If that works, then maybe the solution is to have your init script(s) first enable WOL with ethtool, and then set up the bridge.
Good luck. And please post back if you get it to work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.