SlackwareThis Forum is for the discussion of Slackware Linux.
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.
The correct module is loaded and an interface appears in `ifconfig` output, meaning it is active. It just isn't configured. Have you run `netconfig` as root (or alternatively edit /etc/rc.d/rc.inet1.conf manually and restart the network interface)? I've had some problems with RealTek cards that required manually defining some connection attributes, but I don't know if it affects that card. See `man ethtool` if netconfig doesn't get it working (you may have to set the duplex and set the speed of the connection -- and turn autoneg off. You would have to try all of the combinations of half/full duplex and 1000/100/10 Mbps speed). Hopefully that isn't a problem on your card though.
Notice the correct module is r8168 not r8169 Some of the folks on the Kernel IRC say this was fixed in later kernels.
The issue I had, the ethernet device would be recognized, sometimes get an IP, sometimes not. Then when it did get an IP, after some time, it would drop it.
For other RTL8169 cards, the default r8169 module works fine.
Ok, I downloaded r8169-6.008.00.tar.bz2 from the link of Realtek but you adviced me not to istall r8169 but r8168. I read somewhere that both modules work fine with our card. Should I try the one I downloaded?
Last edited by morphynoman; 11-22-2008 at 03:24 PM.
On my HP lappy the wireless card is detected as eth0 and the IP address from netconfig gets assigned to it. So wired networking doesn't work as eth1 doesn't have an address. I have to edit /etc/rc.d/rc.inet1.conf , delete the eth0 values and put them in eth1.
as root: lspci shows RTL8111/8168B...
lsmod shows r8169.
This worked for me using slack12.1 with the 2.6.24.5 kernel and I haven't had any problems since. I have the 2.6.25.20, 2.6.26.8 and 2.6.27.6 kernels and it works for all of them.
But, I reread your inital post and see 2.6.21.. indicating slackware 12.0? The header error message also suggests problem.
First recommendation is to upgrade to slackware 12.1. If you don't want to do that get newer kernel. I would go with at least 2.6.25.11 but you should probably go with latest in 2.6.25 series. I'm having some problems with 2.6.26 and can't yet recommend. If you want you can try to install the r8169 you downloaded. Post if it works.
On my HP lappy the wireless card is detected as eth0 and the IP address from netconfig gets assigned to it. So wired networking doesn't work as eth1 doesn't have an address. I have to edit /etc/rc.d/rc.inet1.conf , delete the eth0 values and put them in eth1.
Why doesn't it show up as wlan0? Which distribution/version are you running? Post rc.inet1.conf (less commented lines #).
Err.. that NIC has been supported ever since 2.6.18. I should know because I have been using this type of NIC for the last three years.
Not sure what nic your using. But the one I have wasn't present in the market place until early 2008. The kernel was missing all of the vendor IDs. Honestly didn't know PCI Express GigE cards were common 3 years ago.
Don't see how it's possible your R8168 card was support with a vanilla kernel prior to 2.26.3, here's from that changelog
Quote:
As the 8168 wasn't supported by that version this patch simply removes
the bogus write from mac versions <= RTL_GIGA_MAC_VER_06.
So it wasn't possible for an r8168 to work properly prior to 2.26.3 2.18.x only goes to 2.18.8 and there are no patches for r8168. Other distros did hack their kernels by including Realtek's code on their own, perhaps that's what you are referring to?
2.26.5 does support some of the r8168 cards. But not all. There have been a plethoria of patches to the r8169 driver.
2.6.26.3 may have fixed the issue with my r8168, but I don't feel like updating the kernel again, as the Realtek drivers work just fine.
Quote:
r8169: avoid thrashing PCI conf space above RTL_GIGA_MAC_VER_06
The magic write to register 0x82 will often cause PCI config space on
my 8168 (PCI ID 10ec:8168, revision 2. mounted in an LG P300 laptop)
to be filled with ones during driver load, and thus breaking NIC
operation until reboot. If it does not happen on first driver load it
can easily be reproduced by unloading and loading the driver a few
times.
2.6.27.6 includes this patch which fixes the common problem of the nic going to sleep.
Quote:
r8169: wake up the PHY of the 8168
Upstream as a2de6b89b74b28052e293fdb39975a5a03c432e0
This is typically needed when some other OS puts the PHY
to sleep due to the disabling of WOL options in the BIOS
of the system.
Not sure what nic your using. But the one I have wasn't present in the market place until early 2008. The kernel was missing all of the vendor IDs. Honestly didn't know PCI Express GigE cards were common 3 years ago.
Huh? Surely you are not implying that I am making this up? I ordered an ASUS P5B the day that core 2 duo was released (nearly three years ago). These boards are still available so it cannot be that difficult to check the NIC they have onboard. And yes, it was great fun getting it to work (still 2.6.15 back then and the driver available from realtek was total crap).
As for the type that came out only this year, you must be referring to the 8111C (mind the C, not B).
Yes, it is quite possible that support was simply patched on (note that the NIC used the r8169 or r1000 module at the time) but then nearly all distros did it (I think Slackware is the only major distro I did not give a spin back then; of all the rest, only Gentoo took somewhat longer to support the r8168). As for the issues you mention, yes, I had those too when I reached 2.6.24 but not before (the realtek driver worked fine, though). Right now, I am not sure what is happening. Either my modem is dying or the driver still does not work properly because I have been experiencing the occasional glitch again those lost few days...
...Don't see how it's possible your R8168 card was support with a vanilla kernel prior to 2.26.3...
Well, there's now at least two of us that said it is. And this is the NIC driver. If didn't work from the stock distribution, we would not be able to get new drivers over the internet without using different machines. That kind of headache we would remember.
I'm using the gigabyte 780g board. With the stock slackware 12.1 some of the PCI components showed up as unknown but they basically all worked. Using this NIC with stock drivers, I upgraded kernel. After 2.6.25 the PCI components are identified and no longer labeled as unknown. There's never been any problem with the NIC. In all cases, the module r8169 is used and worked well with the NIC that shows up in lspci as RTL8111/8168B..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.