Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
Hi All, I'm having a problem with my wired internet connection: it goes up and down erratically. My laptop (HP compaq nx9110) has a wired connection with a router (linksys ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Posts
    10

    Problem with wired connection in Squeeze


    Hi All,

    I'm having a problem with my wired internet connection: it goes up and down erratically. My laptop (HP compaq nx9110) has a wired connection with a router (linksys wrt54gc). When I had Debian Lenny installed everything ran smoothly. Two or three months ago I upgraded to Debian Squeeze and this problem started. I don't know much about networking (if anything at all), but from searching the web I learned which information might be useful. Any help will be greatly appreciated. I collected the information below not knowing whether it is necessary or sufficient. (Mac address starred...)
    I'll be happy to provide other information if necessary

    Best regards, Igor Hoveijn

    %-------------------------------------------------------------------------------
    [~]$ cat /etc/issue
    Debian GNU/Linux 6.0 \n \l



    [~]$ uname -rm
    2.6.32-5-686 i686



    [~]$ lspci -nn
    .
    .
    02:03.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)
    .
    .



    [~]# ifconfig -a (with connection)
    eth0 Link encap:Ethernet HWaddr **:**:**:**:**:**
    inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::20f:b0ff:fe0d:f12e/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
    RX packets:1001 errors:0 dropped:0 overruns:0 frame:0
    TX packets:908 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:919459 (897.9 KiB) TX bytes:117227 (114.4 KiB)
    Interrupt:19 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:8 errors:0 dropped:0 overruns:0 frame:0
    TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)


    [~]# ifconfig -a (after losing connection)
    eth0 Link encap:Ethernet HWaddr **:**:**:**:**:**
    inet6 addr: fe80::20f:b0ff:fe0d:f12e/64 Scope:Link
    UP BROADCAST MULTICAST MTU:1492 Metric:1
    RX packets:1459 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1308 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1434154 (1.3 MiB) TX bytes:165749 (161.8 KiB)
    Interrupt:19 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:976 errors:0 dropped:0 overruns:0 frame:0
    TX packets:976 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:84940 (82.9 KiB) TX bytes:84940 (82.9 KiB)





    [~]$ cat /etc/network/interfaces
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    allow-hotplug eth0
    #NetworkManager#iface eth0 inet dhcp



    [~]$ cat /etc/NetworkManager/NetworkManager.conf

    [main]
    plugins=ifupdown,keyfile

    no-auto-default=**:**:**:**:**:**,

    [ifupdown]
    managed=false



    [~]$ dmesg | grep -e eth
    [ 1.721438] eth0: RealTek RTL8139 at 0xa000, **:**:**:**:**:**, IRQ 19
    [ 18.600994] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 29.492022] eth0: no IPv6 routers present
    [ 1824.769624] eth0: link down
    [ 1826.402938] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1826.446321] eth0: link down
    %-------------------------------------------------------------------------------

  2. #2
    Guest
    Join Date
    Feb 2005
    Posts
    312
    First disable IPv6 and see if that helps: DebianIPv6 - Debian Wiki

  3. #3
    Just Joined!
    Join Date
    Mar 2012
    Posts
    10
    Hi caravel,

    Thanks for your reply. I followed the instructions you mentioned. IPv6 seems disabled now but my internet connection still goes down... Let me add that another computer running MSW* connected to the same router does not experience such problems. I interchanged cables, but that also did not make any difference. Hmm.

    IH

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! Randicus's Avatar
    Join Date
    Sep 2011
    Location
    China
    Posts
    74
    How are you configuring the settings? With my machine and my quirky connection, when using Gnome or XFCE, using the settings in Administration or Preferences, I forget which one, resulted in the connection continually going down. But I have never had any problems if I ignored that utility and used WICD. Now that I use Openbox, WICD is the only settings manager I have. It might not be relevant to your situation, but perhaps.

  6. #5
    Just Joined!
    Join Date
    Mar 2012
    Posts
    10
    Hi Randicus and others,

    Thanks for your suggestion. Unfortunately it did not help.

    In the mean time I found NetworkManager documentation. I followed the instructions to configure NetworkManager so that it manages the wired connection. Again the problem remains.

    It seems that after a cold start the internet connection comes up, to go down after about 10-20 minutes. At reboot, the connection is not always coming up. Not even after shutdown and waiting for a few minutes. It may after all be a hardware problem. But how to find out?

    Best regards, IH



    Here are my /etc/network/interfaces
    %-------------------------------------------
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    # wijziging: #
    #allow-hotplug eth0

    #NetworkManager#iface eth0 inet dhcp
    %-----------------------------------------------
    and /etc/NetworkManager/NetworkManager.conf
    %-----------------------------------------------

    [main]
    plugins=ifupdown,keyfile

    no-auto-default=**:**:**:**:**:**,

    # gewijzigd in true

    [ifupdown]
    managed=true
    %-----------------------------------------

    Today's output of dmesg | grep -e eth
    %---------------------------------------------
    2012/mrt/12


    [~]$ dmesg | grep -e eth
    [ 1.763867] eth0: RealTek RTL8139 at 0xa000, **:**:**:**:**:**, IRQ 19
    [ 19.242792] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 907.053961] eth0: link down
    [ 921.640947] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 921.983147] eth0: link down
    [ 923.663924] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 924.205256] eth0: link down
    [ 930.435938] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 930.447185] eth0: link down
    [ 969.190513] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 969.257750] eth0: link down
    [ 970.921759] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 971.086895] eth0: link down

    remains down

    after a few hours, reboot

    [~]$ dmesg | grep -e eth
    [ 1.687791] eth0: RealTek RTL8139 at 0xa000, **:**:**:**:**:**, IRQ 19
    [ 19.759436] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 938.531185] eth0: link down
    [ 941.237599] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 941.343801] eth0: link down

    remains down

    after roughly an hour, reboot

    [~]$ dmesg | grep -e eth
    [ 1.720470] eth0: RealTek RTL8139 at 0xa000, **:**:**:**:**:**, IRQ 19
    [ 19.114736] eth0: link down
    [ 19.114972] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 6889.550600] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 6889.550790] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 8420.586877] eth0: link down

    remains down


    %---------------------------------------------

  7. #6
    Guest
    Join Date
    Feb 2005
    Posts
    312
    What kernel driver is in use?
    Code:
    lspci -v | grep -iA 8 realtek
    Also, yes... a hardware problem is very possible here, looking at the dmesg output alone - the squeeze upgrade could be a coincidence. You should first suspect the cable. If you have a spare try that for a while, if it persists, it could be a bad NIC.

  8. #7
    Just Joined!
    Join Date
    Mar 2012
    Posts
    10
    Hi caravel,

    To me the driver seems ok, see below. Yes, I tried another cable with the same result. I'll just give it another try today. Since the problem appears to be invariant under my configuration changes, I am quite puzzled. However I am getting more an more suspicious about the NIC, without good arguments...

    Best regards, IH


    [~]$ lspci -v | grep -iA 8 realtek
    02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
    Subsystem: Hewlett-Packard Company Device 006b
    Flags: bus master, medium devsel, latency 128, IRQ 19
    I/O ports at a000 [size=256]
    Memory at e8206800 (32-bit, non-prefetchable) [size=256]
    Capabilities: <access denied>
    Kernel driver in use: 8139too

    02:04.0 CardBus bridge: Texas Instruments PCI1620 PC Card Controller (rev 01)

  9. #8
    Just Joined! Randicus's Avatar
    Join Date
    Sep 2011
    Location
    China
    Posts
    74
    Code:
    Capabilities: <access denied>
    I am completely ignorant about such things in a log like this, but is it significant or is it one of those normal things that look wrong to the unlearned like me?

  10. #9
    Guest
    Join Date
    Feb 2005
    Posts
    312
    It's normal. If you do not run lspci as root it cannot probe for that information - which is ok as we're not looking for that anyway.

    It's using the correct driver, so that would seem to rule out any conflicts, etc.

    Next I would suggest a newer kernel. If it still fails on a different kernel then it's probably the NIC which is failing. If this is an onboard NIC then it's a possibility (apparently it's common and mine failed several weeks ago).

    To get newer kernels in the stable release, add the backports repository:

    Backports Instructions

    Then install e.g. the 3.2 kernel and reboot into it and see if anything improves:

    Code:
    aptitude -t squeeze-backports install linux-image-3.2.0-0.bpo.1-686-pae linux-headers-3.2.0-0.bpo.1-686-pae

  11. #10
    Just Joined!
    Join Date
    Mar 2012
    Posts
    10
    Hi Caravel, Randicus and others,

    Today I connected my laptop with another cable to a different slot on the router. Problem remains the same. I decided to open the laptop and clean the fan. Hesitantly: that improved the situation a little bit. See below for a 'log'. Btw it is an onboard NIC.

    To install a new kernel I need an internet connection... Is the 3.2 kernel a replacement of the existing kernel or will it appear as an alternative in the grub menu? I'll give it a try.

    Best regards, IH

    2012/mrt/13

    [~]$ dmesg | grep -e eth
    [ 1.723698] eth0: RealTek RTL8139 at 0xa000, **:**:**:**:**:**, IRQ 19
    [ 19.581640] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 715.696530] eth0: link down
    [ 722.462629] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 723.660681] eth0: link down
    [ 749.716666] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 754.240830] eth0: link down
    [ 758.342158] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 759.465763] eth0: link down
    [ 790.747551] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 791.081084] eth0: link down
    [ 792.864972] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 793.038181] eth0: link down
    [ 795.000250] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 795.782998] eth0: link down
    [ 800.184707] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 801.853515] eth0: link down
    [ 803.472386] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 804.199380] eth0: link down
    [ 806.188790] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 806.456030] eth0: link down
    [ 1283.087689] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1283.259010] eth0: link down

    shutdown, power off for about one hour

    power on, boot (different network cable, different slot on the router)

    [~]$ dmesg | grep -e eth
    [ 1.714331] eth0: RealTek RTL8139 at 0xa000, **:**:**:**:**:**, IRQ 19
    [ 19.503881] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1456.165197] eth0: link down
    [ 1457.767014] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1458.229699] eth0: link down
    [ 1460.271560] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1460.352699] eth0: link down
    [ 1462.365650] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1462.638239] eth0: link down
    [ 1464.350780] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1464.413286] eth0: link down
    [ 1472.480895] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1472.694172] eth0: link down
    [ 1474.425160] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1474.586714] eth0: link down
    [ 1476.464100] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1476.822328] eth0: link down
    [ 1479.013018] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1479.106714] eth0: link down
    [ 1486.011919] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1486.060872] eth0: link down
    [ 1492.556147] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1492.969512] eth0: link down
    [ 1494.610228] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1496.444038] eth0: link down
    [ 1498.253821] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1499.819313] eth0: link down
    [ 1530.449995] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1530.615133] eth0: link down
    [ 1539.549402] eth0: link up, 10Mbps, half-duplex, lpa 0x0000
    [ 1541.132872] eth0: link down
    [ 1543.921796] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1544.207184] eth0: link down
    [ 1547.137509] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 1547.271119] eth0: link down

    after cleaning the fan the link is up for quite some time, no dmesg info , shutdown for other business

    in the evening, more up than down, but unreliable

    [~]$ dmesg | grep -e eth
    [ 1.712161] eth0: RealTek RTL8139 at 0xa000, **:**:**:**:**:**, IRQ 19
    [ 19.251640] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 420.893972] eth0: link down
    [ 422.916053] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 422.954895] eth0: link down
    [ 425.316760] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 426.575480] eth0: link down
    [ 1873.561410] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1


    lspci as root

    [igor]# lspci -v | grep -iA 8 realtek
    02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
    Subsystem: Hewlett-Packard Company Device 006b
    Flags: bus master, medium devsel, latency 128, IRQ 19
    I/O ports at a000 [size=256]
    Memory at e8206800 (32-bit, non-prefetchable) [size=256]
    Capabilities: [50] Power Management version 2
    Kernel driver in use: 8139too

    02:04.0 CardBus bridge: Texas Instruments PCI1620 PC Card Controller (rev 01)

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •