RTL8111/8168B PCI Express Gigabit Ethernet Failure

This was one of those "Twilight Zone" things.. I had configured a Linux box for a local reseller and had actually installed it at the ultimate client's site a month back. It was "networked" only in the sense that it had to talk to a network printer - it had no Internet connection at all.

Of course I configured it with a private IP to match the subnet that the printer was using, hooked it up and tested and all was good. All was good until the store manager showed me an old wy60 terminal at the front counter.. oops!

No serial ports in this puppy. That's typical today - everything is USB. No big deal: you can buy USB to serial converters and you can still buy PCI serial cards. I told my customer (the reseller) what he needed and left.

Earlier this week I got a call from one of his regular employees who had gone to the job to install a PCI serial card. He had something unhappy to report: after installing the serial card, the network stopped working.

Of course I suggested pulling the card - he said that he had.. and that the network was still not working. An "ifconfig" showed the correct response, he had triple checked cables and everything else six ways from Sunday and the network was simply unresponsive. Ughh.

I know this tech - he's not a fool, so I knew he had in fact checked everything he could. I asked him to bring me the machine for a look-see and today he did.

My first observations matched his - nothing apparently wrong. But an "lspci -vv" revealed that things were not right..

$ lspci -vv
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168B PCI Express Gigabit (rev ff) (prog-if ff)
        !!! Unknown header type 7f
 

I went right to Realtek and downloaded a new driver. That compiled and installed easily but nothing good happened. To my surprise, an "lsmod | grep r8" showed that "r8169" was loaded and that r8168, although present in the modules directory, was not.

I removed the r8169 files from the directory and rebooted, but r8168 did not load. I did an "insmod" of it and the card popped right up working.. hmmm..

The heck with this: I don't what this is all about (I later found a longish thread at RTL8102EL / Ubuntu 8.04 intermittent failure which describes similar issues with a similar card) so I just jammed my insmod into the top of the network startup script and that fixed it. Good enough for me.

Inasmuch as I had the machine, I also installed the Lava PCI serial card again and tested it and the network at the same time. All was working, so I tore down the machine and will bring it back to them tomorrow.



Got something to add? Send me email.





(OLDER) <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> Linux picks wrong driver for RTL8111/8168B PCI Express Gigabit Ethernet


9 comments



Increase ad revenue 50-250% with Ezoic


More Articles by

Find me on Google+

© Anthony Lawrence







Thu Dec 11 10:38:37 2008: 4900   joe


Isn�t first time the NIC�s fail to init in linux versions, i remember a lot of times need to disable onboard NIC�s and instal 3Com, Intl�s or other well known NIC�s

Salutes tony from patagonia..



Thu Dec 11 10:45:01 2008: 4901   TonyLawrence

gravatar
Definitely - especially these cheaper nics. Even when the driver is OK I've sometimes needed an "ifup eth0" in rc.local to kick things into gear.

I'm not generally a fan of Netgear.

Patagonia - amazing what a connected world we live in, isn't it? When I was a child, I never would have been able to imagine it..



Thu Dec 11 14:41:24 2008: 4902   BigDumbDinosaur


Realtek = Real Junk!

If it had been my client, I would have procured the necessary hardware for him from one of my distributors, marked it up about 20 percent (fifty may be nifty, but in this case twenty would be plenty), handed it to him and probably that would have been the end of it. There's a reason why 3Com is not as cheap as Netgear, D-Link and some of those others. Unfortunately, most when left to their own devices (!) will purchase hardware based on price, not quality and performance.



Thu Dec 11 15:13:04 2008: 4903   TonyLawrence

gravatar
No argument there.



Tue Dec 16 21:18:50 2008: 4940   erik


Thanks for that hint. I was just driving crazy since I never had network problems with linux.



Sat Jul 17 21:31:57 2010: 8827   kasra

gravatar


since it is now 2010 i am running ubuntu 10.04 and i still have that exact same issue, I am absolutely gonna stay away from anything that's realtek inside



Fri Feb 11 17:29:37 2011: 9295   sean

gravatar


I share your frustration. Even when I get the module to load and I convince it that the mtu should be 9000 it never gets better than 10 megabits. Looks like I'm going with the card I have lying around in my drawer.



Sun Oct 16 13:13:07 2011: 10036   anonymous

gravatar


rvdavid appears to have the answer here:

(link)

------------------------
Kerio Samepage


Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us





It has become appallingly obvious that our technology has exceeded our humanity. (Albert Einstein)

It's more fun to be a pirate than to join the navy. (Steve Jobs)








This post tagged: