LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2005, 10:29 AM   #1
tommyknocker
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Wake on LAN


Hi,

i have an KT400A board with an onboard NIC (via-rhine module). It is loaded an works, but the wol feature doesn't. I have read something about ethtool but the command doesn't help (ethtool -s eth0 wol g). After a while I tried a Knoppix-CD (3.4) )which lies around and with this it works but i don't know. Can anybody help me to find the right settings for my NIC?

After a cold boot the wol works once, but after a shutdown under debian sid it doesn't work anymore. Under Knoppix wakeOnLan works after a reboot but why and where can I find the differences?

Can anybody help me and point me on some config files or give me some hints where i can find the correct settings. One strange thing is that if the wake up doesn't work after a manuell bootup on the bios overview screen (where the pci settings are displayed) the mac address of the NIC is 00-00-00-00-00-00?

I hope somebody could help me.

Thanks
Tommyknocker
 
Old 07-23-2005, 05:23 AM   #2
Athaphian
LQ Newbie
 
Registered: Sep 2003
Location: Zoetermeer, Holland
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
Hey everyone,

Im surprised that no-one has replied to this yet.
I also have problems with wake-on-lan, but its different. Since your nics address is 00:00:00 etc... it looks like the driver is not working. Try to get the right driver. As soon as your nics address is something other than just zero's, you can go ahead testing wol.

My problem is like this:
I have a Asus K8V Deluxe (AMD64) with onboard 3Com 3c940 nic. It supports wol. When I shutdown my windows xp I can wake my machine up from my linux laptop using the wakeonlan tool. I notice that the LED of my nic stays on after shutdown.

When I shutdown linux however, the LED of the nic goes off and it won't respond to my wake up calls.

I tried ethtool to set my wol feature (ethtool -s eth0 wol g), but it gives me "Cannot get current wake-on-lan settings: Operation not supported. Not setting wol.". I also tried ethtool eth0 and I notice it cant get any data from my nic at all. But besides this the nic is working fine and ifconfig works like it should. I also tried passing the enable_wol=1 line to the kernel, no results.

The main question is: can I configure my linux (gentoo) that it does not shutdown my nic after shutdown, just like windows does.
Or maybe: any other ideas?
 
Old 07-23-2005, 04:22 PM   #3
tommyknocker
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Athaphian, my motherboard uses an via nic so i don't know if i can help you.

First of all look around whether the 3com linux module supports wol, do this by searching the web or look into the sources and search for wol or wake on lan. Sorry but I can't help you with your nic.

But one hint which solved my issue, I recently found out that the newer module <= x2.0 caused this problem. I then used an older one an since then wol works.

Tommyknocker
 
Old 07-24-2005, 04:43 AM   #4
Athaphian
LQ Newbie
 
Registered: Sep 2003
Location: Zoetermeer, Holland
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
Hey,
Thanks for your reply. I might check for wol compatibility.. Im beginning to believe that its not supported, because I got ethtool working, but it doesnt say anything about wol.

I do however have the problem fixed about my nic being shutdown after I type: poweroff. For the gentoo users: the runlevel scripts to load the network settings on boot always force the nic to shutdown. Dont use the init scripts and manually type "ifconfig eth0 192.168.1.blah" or alter the runlevel scripts and delete the stop parts. Then after poweroff the nic stays on. (do not use ifconfig eth0 down, as this brings it down manually, just let it on)

But for me the problem now rests in setting the nic to accept magic packets.. it works for windows. I won't accept the fact that windows supports it and linux doesnt. I have found some opendrivers for windows, so I guess they contain the sourcecode... maybe Ill try to copy the wol part to the linux drivers. Only problem is Ive never edited or made drivers for hardware before .

Anyway, if I find out anything, Ill post it here so it will at least be documented somewhere.
 
Old 07-26-2005, 01:26 PM   #5
Athaphian
LQ Newbie
 
Registered: Sep 2003
Location: Zoetermeer, Holland
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
Hey everyone,

Probably my first not-question-post on this board .. but today I got a solution.

Im using gentoo (gentoo kernel 2.6.12-r6) on my AMD64 (asus k8v deluxe with onboard 3com gigabit lan). AND! I got wake on lan working. This is how I did it:

1. I downloaded the latest sk98lin driver from http://www.syskonnect.com/syskonnect/support/driver/.
2. I installed it using the kernel patch option.
3. I did menuconfig and went to the drivers section of my kernel and under 1000mbit cards I selected the new syskonnect gigabit EXPERIMENTAL driver.
4. I compiled and installed my kernel and edited my grubfile.
5. I made sure that gentoo did not shut my network card down when poweroff (commented out all lines from the net shutdown script, for more info on how to do this in gentoo you can mail me or check the manual on www.gentoo.org).
6. I used ethtool to set wol to g (magic packet, this seems to be the only one supported for now): "ethtool -s eth0 wol g".
7. I did a poweroff
8. I used wakeonlan on my laptop to boot my system over network, yay!

Any questions? you can mail them or post here, but since Im only on this board when I got a problem, mailing would be quicker.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wake on lan upload-3 Linux - Networking 2 06-12-2006 01:00 PM
wake on lan ampena Debian 3 11-16-2005 06:21 AM
Wake-on-LAN dARkHunTEr Linux - Hardware 0 11-04-2003 04:17 PM
wake on lan Stex Linux - Networking 7 06-25-2003 11:38 PM
wake-on-lan PlatinumRik Linux - Hardware 1 04-09-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration