Skip to main content

Thread: Nework problems between Ubuntu 10.04 64 bits and Huawey HG520


this first post, , not fluent in english, sorry in advance possible mistake.

fist describe context, problem, , include detailed system information. have been looking problem in net, without results.

context:
have changed pc 32 bit architecture 64 bits. have installed windows 7 , ubuntu 10.04. in previous pc had installed ubuntu 10.04 , windows xp (without these problems). pc connected, via cable, huawey hg520 gateway.

problem:
internet connection unestable: times lost , recovered. problem lies between ethernet card , router, cannot reach router in such cases (ping 192.168.1.1 gives "host unreachable", , tcpdump gives arp request "who has 192.168.1.1"). have not issue hen windows 7, , had not problem ubuntu 10.04 when architecture 32 bits. have tried set network configuration manually, same result: inestable conection internet.

have tried ubuntu 11.10, simmilar (even worse) results.

system information

result lshw -c network:

code:
*-network                        description: ethernet interface         product: rtl8111/8168b pci express gigabit ethernet controller         vendor: realtek semiconductor co., ltd.         physical id: 0         bus info: pci@0000:06:00.0         logical name: eth0         version: 06         serial: 50:e5:49:39:c0:90         size: 100mb/s         capacity: 1gb/s         width: 64 bits         clock: 33mhz         capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation         configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3lk-napi duplex=full ip=192.168.1.129 latency=0 link=yes multicast=yes port=mii speed=100mb/s         resources: irq:29 ioport:de00(size=256) memory:fbcff000-fbcfffff(prefetchable) memory:fbcf8000-fbcfbfff(prefetchable)
result lspci -nn | grep 0280
code:
root@despacho:/home/papa# lspci -nn   00:00.0 host bridge [0600]: intel corporation device [8086:0100] (rev 09)  00:01.0 pci bridge [0604]: intel corporation sandy bridge pci express root port [8086:0101] (rev 09)  00:02.0 vga compatible controller [0300]: intel corporation device [8086:0112] (rev 09)  00:16.0 communication controller [0780]: intel corporation cougar point heci controller #1 [8086:1c3a] (rev 04)  00:1a.0 usb controller [0c03]: intel corporation cougar point usb enhanced host controller #2 [8086:1c2d] (rev 05)  00:1b.0 audio device [0403]: intel corporation cougar point high definition audio controller [8086:1c20] (rev 05)  00:1c.0 pci bridge [0604]: intel corporation cougar point pci express root port 1 [8086:1c10] (rev b5)  00:1c.2 pci bridge [0604]: intel corporation 82801 pci bridge [8086:244e] (rev b5)  00:1c.3 pci bridge [0604]: intel corporation cougar point pci express root port 4 [8086:1c16] (rev b5)  00:1c.4 pci bridge [0604]: intel corporation cougar point pci express root port 5 [8086:1c18] (rev b5)  00:1d.0 usb controller [0c03]: intel corporation cougar point usb enhanced host controller #1 [8086:1c26] (rev 05)  00:1f.0 isa bridge [0601]: intel corporation device [8086:1c5c] (rev 05)  00:1f.2 sata controller [0106]: intel corporation cougar point 6 port sata ahci controller [8086:1c02] (rev 05)  00:1f.3 smbus [0c05]: intel corporation cougar point smbus controller [8086:1c22] (rev 05)  01:00.0 usb controller [0c03]: device [1b6f:7023] (rev 01)  03:00.0 pci bridge [0604]: integrated technology express, inc. device [1283:8892] (rev 10)  05:00.0 sata controller [0106]: device [1b4b:9172] (rev 11)  06:00.0 ethernet controller [0200]: realtek semiconductor co., ltd. rtl8111/8168b pci express gigabit ethernet controller [10ec:8168] (rev 06)
result from: lsusb
code:
root@despacho:/home/papa# lsusb  bus 003 device 001: id 1d6b:0003 linux foundation 3.0 root hub  bus 002 device 003: id 03f0:8207 hewlett-packard   bus 002 device 002: id 8087:0024    bus 002 device 001: id 1d6b:0002 linux foundation 2.0 root hub  bus 001 device 002: id 8087:0024    bus 001 device 001: id 1d6b:0002 linux foundation 2.0 root hub  root@despacho:/home/papa#
result from: ifconfig
code:
root@despacho:/home/papa# ifconfig  eth0      link encap:ethernet  direcciónhw 50:e5:49:39:c0:90              direc. inet:192.168.1.129  difus.:192.168.1.255  másc:255.255.255.0            dirección inet6: fe80::52e5:49ff:fe39:c090/64 alcance:enlace            activo difusiÓn funcionando multicast  mtu:1500  métrica:1            paquetes rx:6656 errores:0 perdidos:6656 overruns:0 frame:6656            paquetes tx:8102 errores:0 perdidos:134 overruns:0 carrier:0            colisiones:0 long.colatx:1000             bytes rx:3404300 (3.4 mb)  tx bytes:1019373 (1.0 mb)            interrupción:29 dirección base: 0xe000     lo        link encap:bucle local              direc. inet:127.0.0.1  másc:255.0.0.0            dirección inet6: ::1/128 alcance:anfitrión            activo bucle funcionando  mtu:16436  métrica:1            paquetes rx:274 errores:0 perdidos:0 overruns:0 frame:0            paquetes tx:274 errores:0 perdidos:0 overruns:0 carrier:0            colisiones:0 long.colatx:0             bytes rx:31636 (31.6 kb)  tx bytes:31636 (31.6 kb)    root@despacho:/home/papa#
result from: lsmod
code:
root@despacho:/home/papa# lsmod  module                  size  used  binfmt_misc             7960  1   ppdev                   6375  0   snd_hda_codec_realtek   279104  1   snd_hda_intel          25805  2   snd_hda_codec          85759  2 snd_hda_codec_realtek,snd_hda_intel  snd_hwdep               6924  1 snd_hda_codec  snd_pcm_oss            41394  0   snd_mixer_oss          16299  1 snd_pcm_oss  snd_pcm                87946  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss  snd_seq_dummy           1782  0   snd_seq_oss            31191  0   snd_seq_midi            5829  0   snd_rawmidi            23420  1 snd_seq_midi  snd_seq_midi_event      7267  2 snd_seq_oss,snd_seq_midi  snd_seq                57481  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event  snd_timer              23681  2 snd_pcm,snd_seq  snd_seq_device          6888  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq  fbcon                  39270  71   tileblit                2487  1 fbcon  font                    8053  1 fbcon  bitblit                 5811  1 fbcon  softcursor              1565  1 bitblit  snd                    71283  16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device  vga16fb                12757  1   vgastate                9857  1 vga16fb  lp                      9336  0   parport                37160  2 ppdev,lp  xhci                   42775  0   soundcore               8052  1 snd  snd_page_alloc          8500  2 snd_hda_intel,snd_pcm  usbhid                 41116  0   hid                    83888  1 usbhid  r8169                  39714  0   mii                     5237  1 r8169  ahci                   38350  3   root@despacho:/home/papa#
thanks in advance

finally found answer myself in http://ubuntuforums.org/archive/inde...t-1436667.html.

answer hidden in long debate, copy here solution:

problem due incorrect driver loading 2.6.32-22-generic-pae kernel (may apply other kernels also).

how rectified issue.

1. check model number of ethernet controller:
$ lspci | grep realtek
02:00.0 ethernet controller: realtek semiconductor co., ltd. rtl8111/8168b pci express gigabit ethernet controller (rev 03)

2. check driver kernel loading:
$ lsmod | grep r816*
r8169 91629 0

can see have r8169 driver r8168 chipset cause of our issues.

3. download 8168 linux drivers realtek website: http://www.realtek.com.tw/downloads/, choosing proper card (in case, pci express).

4. cd download directory , extract:
$ tar -xvf r8168-8.027.00.tar.bz2 (or ever driver downloaded

5. run script superuser autocompile driver:
$ cd r8168-8.027.00
$ sudo ./autorun.sh

6. [optional] test driver
$ sudo rmmod r8169
$ sudo modprobe r8168
$ sudo /etc/init.d/networking restart

network should , running new driver. make change permanent.

7. blacklist r8169.
$ sudo gedit /etc/modprobe.d/blacklist.conf

append following lines:
# blacklist realtek rtl8111/8169 gigabit driver
blacklist r8169

save , quit.

8. update driver cache.
$ update-initramfs -u

reboot , see if correct driver has loaded:

$ lsmod | grep r816*
r8168 91629 0

, should hunky-dory.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless Nework problems between Ubuntu 10.04 64 bits and Huawey HG520


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account