LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-20-2008, 06:10 PM   #1
jio23
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Rep: Reputation: 0
No network detected, Realtek 8111/8168 issue


Hi,

I have spent several hours working through the forums to find a solution to my problem. There are a lot of issues and advice around these cards, I have tried everything that seems to apply, but to no avail. Here are the details.

I have run into network problems while installing Ubuntu Gutsy Gibbon on a new server (not a dual boot). I plan to turn this into a media server, but want to get the linux install sorted first. Basically all the lights are on on the NIC and router, but there is no network. The Network app shows an entry for wired network, which is set to DHCP. Network Tools app shows an entry for eth0, but it does not look right. Rummaging around on the command line shows that things are definitely not right. This is the same whether i boot from CD or from the hard drive.

The network card is an on board realtek 8111/8168 NIC. I have a sound card and video card also installed, but no drivers for these yet - i can not get online to download them The server is a intel dual core. It does not seem to be an IRQ issue as the network controller is on 10, and nothing else is.

The router is set up for DHCP and it works jsut fine - it is what i am using to connect right now on my laptop.

I have gone to the realtek website and picked up some drivers. Only one compiled OK, but there was no change after the install (and reboot, and restart of the network service).

Below are some details of the system config. This is untouched after the install (the 3rd install with a freshly downloaded version of GG). Hopefully there is plenty of info here.

Any suggestions to get my new server on the net will be greatly appreciated. All I can think of is to rip out the realtek and put in a new PCI NIC card. Not sure if this will simply create new problems with 2 NICs though! Maybe i will try installing an earlier version.

Thanks,
John

=======

john@mediacentre:~$ uname -a
Linux mediacentre 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

john@mediacentre:~$ lspci
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev ff)
04:00.0 Multimedia audio controller: Creative Labs SB Audigy LS
04:01.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

john@mediacentre:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1D:7D:35:2E:54
inet6 addr: fe80::21d:7dff:fe35:2e54/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:4294967270 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:17 Base address:0xa000

eth0:avah Link encap:Ethernet HWaddr 00:1D:7D:35:2E:54
inet addr:169.254.4.19 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:17 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2416 (2.3 KB) TX bytes:2416 (2.3 KB)

john@mediacentre:~$ ethtool -i eth0
driver: r8169
version: 2.2LK
firmware-version:
bus-info: 0000:03:00.0

john@mediacentre:~$ more /etc/hosts
127.0.0.1 localhost
127.0.1.1 mediacentre

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

john@mediacentre:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 1000 0 0 eth0

john@mediacentre:~$ more /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto eth0

john@mediacentre:/usr/src/r8168-8.004.00$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: pumbg
Current message level: 0x00000033 (51)
Link detected: yes

john@mediacentre:/usr/src/r8168-8.004.00$ sudo ethtool -i eth0
driver: r8169
version: 2.2LK
firmware-version:
bus-info: 0000:03:00.0

john@mediacentre:/usr/src/r8168-8.004.00$

==========
 
Old 01-20-2008, 06:57 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
I do not use ubuntu but some things sping to mind

Code:
su
cat /proc/interrupts > /interrupts
lsmod > /lsmod
2) why do you say its 8111/8168 but there are references in your post to 8169.

3) post the full output of the irq list but for the lsmod, just the r8168 or r8169 would suffice

4) what kind of firewall are you using? can you confirm its running?

5) I have reservations about your ifconfig.....IMHO there should be one entry for eth0....yes I can spot the irq but we are looking for conflicts in my irq request.

6) does your /etc/resolv.conf have your isp addresses or are you setting up your own dns service?

Finally....me thinks its a combination of gg thinking it can use a 8169 driver when it should be a 8168
 
Old 01-20-2008, 09:36 PM   #3
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
this is weird...8168 vs 8169

http://ml.osdir.com/linux.redhat.rel.../msg00080.html
 
Old 01-20-2008, 09:49 PM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
ok try this

http://wiki.sabayonlinux.org/index.p...3.0stable_mini

and sign of success

http://www.murga-linux.com/puppy/vie...php?=&p=128301

Last edited by aus9; 01-20-2008 at 09:51 PM.
 
Old 01-21-2008, 12:53 AM   #5
jio23
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Aus,

Thanks for the reply. I'll try r1.4 this time rather than later version.

In answer to your other qs

2 - The card is 8168 but gg seems to think it is an 8169

3 - What is the command for this? I just looked at the startup screen info to see IRQ settings

4 - No firewall at the moment. I am running them on the servers at the moment. Keeping things simple while i sort this out

5 - Agreed. Those entries are there from install. I think that the extra eth0 is for ipv4, but not sure. This was a clean install, as i want to work out the exact problem.

6 - Yep. DNS setting are in etc/resolve but i cant even get to the router.

I have been messing around and installed a second NIC, but this is generating other problems. Reckon i will take it out and try to go forward with the new driver. Otherwise i will try Ubuntu 7.04.

John
 
Old 01-21-2008, 02:53 AM   #6
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
q3 command is the code for /proc/interrupts. my code will put a text file at /...the root of the tree...tree of the root the root of all evil.

yes it will be hard to trouble shoot if you are adding another nic.

but if all else fails maybe that is the last resort?
 
Old 01-21-2008, 05:44 AM   #7
jio23
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Some good progress has been made. I have the old realtek motherboard mounted NIC running with an older driver. To do this i had to go back to Ubuntu 7.04, which recognised the new DLink PCI NIC i had installed. Then I could find a driver that compiled, installed, and worked!

Now both cards work, and i can swap between them on the fly.

The steps i took were:

1 - Downloaded r8168-8.004.00 driver from :
http://wiki.centos.org/HardwareList/RealTekRTL8111b
2 - $ tar jxvf r8168-8.005.00.tar.bz2 # i unpacked this on the desktop
3 - $ sudo mv r8168-8.004.00 /usr/src # move the driver directory from desktop to /usr/src
4 - $ cd /usr/src/r8168-8.004.00
5 - $ sudo make clean modules
6 - $ sudo make install
7 - $ sudo depmod -a
8 - $ sudo insmod ./src/r8168.ko
9 - $ lsmod -a | grep 8186 #just to check it was there
10 - $ cd /etc/modprobe.d
11 - $ sudo touch blacklist-network
12 - $ vi blacklist-network # add r1869 to black list
13 - $ sudo update-initramfs -u #to make the change permanent
14 - reboot
15 - ethtool -i eth0 #to see new driver assigned

After this i could do everything else with using Network and Network Tools apps.

Next step is to get this working with Ubuntu 7.10.

John

Last edited by jio23; 03-27-2008 at 03:51 PM. Reason: Added CLI for all steps
 
Old 01-21-2008, 10:19 PM   #8
jio23
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Just to confirm that the list of commands above work fine on Gutsy Gibbon as well, witnessed by my entry here using the original hardware configuration and the new (actually, old) driver.

Looking forward to repeating the process with the next release

John
 
Old 03-02-2008, 12:33 AM   #9
Thoht
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Hey there.

For other victims, at step 12, add the line "blacklist r8169" to the file created (blacklist-network) in order to blacklist the old driver. Merely a clarification.

Thanks for sharing the solution, however I'm a bit curious - it would seem that my computer worked just fine in another location, at the reseller namely, but not at my place. What could be the cause of this? Both of us connect with DHCP, but different ISPs. Only me and another of his customers have had this issue, despite this being the network device used on all the computers he puts together.
 
Old 03-25-2008, 05:45 AM   #10
fragglerocker
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by jio23 View Post
1 - Downloaded r8168-8.004.00 driver from :
...
2 - Unpacked on the Desktop
3 - $ sudo mv r8168-8.004.00 /usr/src
4 - $ cd /usr/src/r8168-8.004.00
5 - $ sudo make clean modules
Hi there,
same Problem on my Asus A6Tc Notebook. Trying to make the modules, i get the following error:
Code:
make -C src/ clean
make[1]: Betrete Verzeichnis '/usr/src/r8168-8.005.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers rset
make[1]: Verlasse Verzeichnis '/usr/src/r8168-8.005.00/src'
make -C src/ modules
make[1]: Betrete Verzeichnis '/usr/src/r8168-8.005.00/src'
make -C /lib/modules/2.6.24-12-generic/build SUBDIRS=/src modules
make[2]: Betrete Verzeichnis '/usr/src/linux-headers-2.6.24-12-generic'
scripts/Makefile.build:41: /src/Makefile: No such file or directory
make[3]: *** Keine Regel, um »/src/Makefile« zu erstellen.  Schluss.
make[2]: *** [_module_/src] Fehler 2
make[2]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.24-12-generic'
make[1]: *** [modules] Fehler 2
make[1]: Verlasse Verzeichnis '/usr/src/r8168-8.005.00/src'
make: *** [modules] Fehler 2
can somebody help me out?
so long,
Sascha
 
Old 03-25-2008, 08:13 AM   #11
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
I can not read German but can you try this please

Code:
su
lsmod | grep "r8168"
lsmod | grep "r8169"
report your results....if you already have both...blacklist r8169 and relook at post 7 step 8.
 
Old 03-25-2008, 07:02 PM   #12
fragglerocker
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
I can not read German
oh i didn't realize that the output is german, sorry
a little translation:
"Fehler 2" is "error 2" and "Betrete/Verlasse Verzeichnis" is "enter/leave dir. "Keine Regel, um »/src/Makefile« zu erstellen. Schluss." is "No rule to make /src/Makefile. Exiting"

i'll try tomorrow and post my results here. thank you!
 
Old 03-25-2008, 09:55 PM   #13
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
ahh you are using kernel headers....I use a full vanilla kernel but this may help you modify the makefile so it recognises the kernel headers as "the kernel"

http://www.cyberciti.biz/tips/build-...urce-tree.html
 
Old 03-25-2008, 10:09 PM   #14
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
your laptop works
http://gentoo-wiki.com/HARDWARE_Asus_A6T

try
Code:
modprobe r8168
or modprobe r8169 to see if you already have modules built but not yet running.

if they exist....no need to build them
 
Old 03-26-2008, 04:07 AM   #15
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
jio23

others appreciate your efforts. Can you edit post 7 so show unpack command for those using CLI type distros.

suggest replace step (2) with
tar jxvf (version).tar.bz2.....eg tar jxvf r8168-8.005.00.tar.bz2
 
  


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
Realtek 8111/8168 LAN Driver will not install on RHEL4.5 Astol Linux - Networking 6 05-08-2008 12:36 PM
How to install the RTL 8168/8111 driver? blueskyhff Linux - Networking 2 12-18-2007 01:24 PM
Realtek 8168(AS) driver? blueskyhff Linux - Networking 2 03-01-2007 07:42 AM
Realtek 8168/8111 hang on high load ari197 Linux - Laptop and Netbook 1 12-29-2006 04:42 AM
realtek 8168/8111 hangs on high load ari197 Linux - Hardware 3 12-07-2006 03:37 AM


All times are GMT -5. The time now is 02:39 PM.

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