LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-21-2007, 01:56 PM   #1
Gato Azul
Member
 
Registered: Sep 2003
Location: /dev/null
Distribution: CentOS, Ubuntu
Posts: 128

Rep: Reputation: 16
Exclamation Realtek 8139/8168/8169 on 2.6.21.3 or newer


I just wanted to post this information to save others from some of the frustration that this bug has brought me.

Who this applies to
If you're dual booting Windows and using a newer Linux distro, specifically one with kernel 2.6.21.3 or newer and are having problems getting your Realtek 8139/8168/8169 card to function, then this thread's for you.

The problem
Unable to connect using a Realtek 8139/8168/8169 (possibly others). In my case, ifconfig and ethtool showed that the card was present, enabled, and that a link was detected, but I had no link lights and obviously no connectivity.

The issue
Something got broken in kernel 2.6.21.3. The problem, according to the Gentoo Wiki and the Ubuntu Forums, is that:
Quote:
As of 27 May 2007, in kernel 2.6.21.3, you may experience the issues with the r8169 driver if you dual boot Windows on some systems. Windows by defaults disables the NIC at Windows shutdown time in order to disable Wake-On-Lan, and this NIC will remain disabled until the next time Windows turns it on. The r8169 driver in the kernel does not know how to turn the NIC on from this disabled state; therefore, the device will not respond, even if the driver loads and reports that the device is up. To work around this problem, simply enable the feature "Wake-on-lan after shutdown." You can set this options through Windows' device manager.
The solution
- Boot up Windows
- Right click on My Computer
- Click on Properties -> Hardware -> Device Manager
- Expand your network card section and double click on your Realtek network card
- Set "Wake-on-lan after shutdown" to enabled

For my part, I've confirmed that this works for Ubuntu 7.10, but it should fix the issue for any distro with a newer kernel such as openSUSE 10.3.

Edit: according to the Gentoo wiki (if I ever learned how to read!), this may be an issue with older kernels as well -- all the way back down to 2.6.19.5. Yuck.
 
Old 10-21-2007, 11:04 PM   #2
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
Thanks. Thanks. Thanks.

I had no idea what the fuck was wrong with my network card.
 
Old 10-22-2007, 12:20 AM   #3
Gato Azul
Member
 
Registered: Sep 2003
Location: /dev/null
Distribution: CentOS, Ubuntu
Posts: 128

Original Poster
Rep: Reputation: 16
You're most welcome, I'm glad it helped!
 
Old 12-02-2007, 01:28 AM   #4
packetgod
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Hey, thanks much I just encountered the same issue after booting up a friends windows drive to help troubleshoot it. I thought it infected the boot sector or some other nefarious thing.

Who would have thought it.

Thanks again.
 
Old 02-24-2008, 11:24 AM   #5
tonygibbs16
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Realtek 8139/8168/8169 on 2.6.21.3 or newer

Thanks for this information. It worked for me with a Windows-XP system and with Linux 2.6.23.14 on Fedora 8.

Thanks,
Tony
 
Old 04-11-2008, 03:18 AM   #6
zhenghuihu
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Thank you very much. I thought it was the kernel and was about to re-compile it.
You are genius.
 
Old 05-05-2009, 10:56 PM   #7
azelliot246
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
I'm not dual boot!

I am having the EXACT same issue but my HDD is in no way infected with MS software, lol. In 11.0 i used a driver mod install that I had to compile, but that isn't working for some reason, and being that I am not a programmer, I cannot troubleshoot the output. r8169 to be exact. I remember for my laptop wireless I had to use an XP driver, but had no need being that I "upgraded" and openSUSE 11.1 didn't boot when I had the root and swap partitions on a separate HDD as my home partition, so I did a fresh install, and NOW the realtek won't work. Anyone know of a linux only fix? Thanks.
 
  


Reply

Tags
network, realtek, rtl, wakeonlan, wol


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
Realtek 8168 driver problem delinne Linux - Hardware 5 07-16-2008 05:51 AM
Realtek 8168(AS) driver? blueskyhff Linux - Networking 2 03-01-2007 07:42 AM
FC6, Realtek 8168, installed rpm, now what? JSX Linux - Networking 2 01-05-2007 11:39 AM
Realtek 8168/8111 hang on high load ari197 Linux - Laptop and Netbook 1 12-29-2006 04:42 AM
RealTek 8168/8110 with fedora zolorin Linux - Hardware 0 09-07-2004 08:55 PM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration