LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   No network detected, Realtek 8111/8168 issue (https://www.linuxquestions.org/questions/linux-networking-3/no-network-detected-realtek-8111-8168-issue-615047/)

jio23 01-20-2008 05:10 PM

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$

==========

aus9 01-20-2008 05:57 PM

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

aus9 01-20-2008 08:36 PM

this is weird...8168 vs 8169

http://ml.osdir.com/linux.redhat.rel.../msg00080.html

aus9 01-20-2008 08:49 PM

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

jio23 01-20-2008 11:53 PM

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

aus9 01-21-2008 01:53 AM

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?

jio23 01-21-2008 04:44 AM

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

jio23 01-21-2008 09:19 PM

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

Thoht 03-01-2008 11:33 PM

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.

fragglerocker 03-25-2008 04:45 AM

Quote:

Originally Posted by jio23 (Post 3029998)
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

aus9 03-25-2008 07:13 AM

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.

fragglerocker 03-25-2008 06:02 PM

Quote:

Originally Posted by aus9 (Post 3099722)
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!

aus9 03-25-2008 08:55 PM

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

aus9 03-25-2008 09:09 PM

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

aus9 03-26-2008 03:07 AM

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


All times are GMT -5. The time now is 12:55 AM.