LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-29-2008, 03:13 PM   #1
sqrt
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Rep: Reputation: 0
WOL trouble on FC 9


Hi guys

I just installed FC 9 and am now having trouble with wake on LAN.

I tried running a special boot.local and halt.local as well as modifying the etc/int.d/halt file.

But nothing worked even though the LEDs at the NIC's backside are glowing.

Please tell me which information I need to provide so you can help me.

Thanks in advance
sqrt
 
Old 07-31-2008, 06:33 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I can only give you my experience with WOL (using Ubuntu).

First, make sure that you have enbabled WOL capability in your BIOS. Beyond that, I found that loading the ethernet driver (apparently) disabled WOL for the card. The solution was the following line in /etc/rc.local

Code:
ethtool -s eth0 wol g
The exact options for ethtool may be different for your ethernet interface.
 
Old 08-01-2008, 03:31 PM   #3
sqrt
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Hello blackhole54

thank you for your help. WOL is definitely enabled in BIOS.

The rc.local line made the wol active.

But here is another interesting thing:

I added these lines
Code:
ethtool -s eth0 wol g
sleep 5
ethtool eth0
to the end of etc/init.d/rc0.d/S01halt. To ensure wol is turned on when the system goes to halt.

And what shows up just before the system is halts? WOL set to g. That means wol should work or am I wrong here?

So what could it be then?

I am sending the Magic Packet from a windows XP box with "Wake on LAN tool" but commandline tools do not work either. Any possibility that something is wrong here?

Maybe dodgy hardware?

Anything else?

Thanks guys ...
 
Old 08-01-2008, 04:46 PM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by sqrt View Post
And what shows up just before the system is halts? WOL set to g. That means wol should work or am I wrong here?
That sounds right to me. Then, I am no expert ...

Quote:
I am sending the Magic Packet from a windows XP box with "Wake on LAN tool" but commandline tools do not work either. Any possibility that something is wrong here?
You are supplying the correct MAC address (of target!) to your "Wake on LAN tool"?

You can monitor what the target system actually sees with tcpdump. (Or another packet sniffer like wireshark. I just used what was easiest for me.) You can see my results below. (The not tcp port 22 just prevents all heck from breaking loose when doing this over SSH.) You should see the MAC address of the target computer (actually of the interface you are using to wake) repeated multiple times. I have obfuscated MAC and IP addresses with x's. I have also edited out 2 packets of irrelevant (NTP) traffic.

Obviously, the target system must be already running to do this check. A magic packet in such circumstances will do no harm, but no good either.

Code:
root@ratel:~# tcpdump -nni eth0 not tcp port 22
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
15:09:10.264575 00:60:08:xx:xx:xx > 00:18:f3:xx:xx:xx, ethertype Unknown (0x0842), length 116: 
        0x0000:  ffff ffff ffff 0018 f3xx xxxx 0018 f3xx  .........S.....S
        0x0010:  xxxx 0018 f3xx xxxx 0018 f3xx xxxx 0018  .....S.....S....
        0x0020:  f3xx xxxx 0018 f3xx xxxx 0018 f3xx xxxx  .S.....S.....S..
        0x0030:  0018 f3xx xxxx 0018 f3xx xxxx 0018 f3xx  ...S.....S.....S
        0x0040:  xxxx 0018 f3xx xxxx 0018 f3xx xxxx 0018  .....S.....S....
        0x0050:  f3xx                                     .S

3 packets captured
6 packets received by filter
0 packets dropped by kernel
root@ratel:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:18:F3:xx:xx:xx  
          inet addr:192.168.xx.xx  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::218:f3ff:fexx:xxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:52531 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60499 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6480625 (6.1 MiB)  TX bytes:72384859 (69.0 MiB)
          Interrupt:58 Base address:0xd000
Quote:
Maybe dodgy hardware?
Always a possibility.
 
Old 08-07-2008, 08:41 AM   #5
sqrt
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Hi folks

Well my recieved packages seemed to be ok. Except for the fact that they do not start with ffff ffff ffff but some thing different before and do then continue with ffff ffff ffff folowed by the correct Mac address.

I will try different hardware next week and tell you about the resultes.

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
wol with Debris bookie Linux - General 2 06-10-2008 04:21 PM
WOL Question carlosinfl Linux - Networking 1 05-17-2007 08:34 PM
Has anyone succeded WOL ? SUBARU Linux - Wireless Networking 2 06-12-2006 10:12 PM
WOL help. pete1234 Linux - Networking 5 07-30-2005 08:49 PM
Wol hakcenter Linux - Networking 5 10-07-2003 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:15 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