Wired Ethernet Connection periodically drops

I am hardwired with an ethernet connection and it was working great for many months. Recently it started dropping periodicallyā€¦very annoying to say the least.

The product is: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

My configuration has the driver listed as: r8169
The firmware is listed as: rtl8168g-3_0.0.1 04/23/13

Iā€™m still a newbie in this stuffā€¦but it doesnā€™t look like the firmware and the driver are matching like they should beā€¦could that be the problem or should i look elsewhere?

Hi @larryb,

take a look here:

1 Like

I have the same hardware here. No problems. I would look at your cable or target devices.

A good way to check for problems (eth0 is my RTL8168):

user@my_host:~$ netstat -i 
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0       1500 0   1975313      0      0 0       1098856      0      0      0 BMRU
lo        65536 0     17738      0      0 0         17738      0      0      0 LRU

(The columns donā€™t line up on the terminal either:) All of the error counters should be 0.

Here is another:

user@my_host:~$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr xxx  
          inet addr:192.168.101.202  Bcast:192.168.101.255  Mask:255.255.255.0
          inet6 addr: fe80::182e:2781:d6f4:87e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1975342 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1098880 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2029175372 (2.0 GB)  TX bytes:312141046 (312.1 MB)

PCI Bus 02:
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)

	Subsystem: ASUSTeK Computer Inc. P8P67 and other motherboards [1043:8432]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 27
	Region 0: I/O ports at c800 [size=256]
	Region 2: Memory at fdfff000 (64-bit, prefetchable) [size=4K]
	Region 4: Memory at fdff8000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169
1 Like

@wolfman,

That was a great guide for getting the driver but iā€™m still having some issue with the wired connection dropping. I get a different output from the guide when i run the commandā€¦

sudo ethtool -i enp1s0

So iā€™m wondering if something is still not set rightā€¦and maybe you can tell from the outputā€¦

driver: r8168
version: 8.041.00-NAPI
firmware-version:
expansion-rom-version:
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

Hi @larryb,

I am not sure, what I suggest is that you change your software sources download location and try running a system update again and see if that helps?:

Maybe @ouroumov can be of some help as he knows a lot about networking?. :smiley:

1 Like

Not sure I can be much help, only problem Iā€™ve ever had with a cable connection was most likely due to some IPv6 related DNS problem.

@larryb can you elaborate on what you mean by ā€œconnection dropsā€?
Does it means you canā€™t reach websites anymore or do you loose the interface altogether (not shown in ifconfig)

1 Like

It looks like i messed up my sources.list file a little when i added ā€œuniverseā€ to the lines. The output from ā€œapt-get updateā€ told me which lines were problematic, so i went in and changed them to where the sources.list file is no longer giving me problems.

So far the wired ethernet connection is working better now, but it still drops its connection at times. Iā€™m going to try ā€˜ignoringā€™ the IPv6 in the ethernet wired settings to see if that might work more consistently based on what @ouroumov posted.

I appreciate the help and will let you know my progress.

1 Like

The next time the wired connection drops iā€™ll run ifconfig to seeā€¦iā€™ve not done that yet.

1 Like

The wired connection is still dropping. Here are the readings that i get while it is ā€˜droppedā€™ā€¦

Firstly, when i click my network connection button at the top right of my computer screen it shows my wireless connection as connected, but my ā€˜ethernet networkā€™ has its verbiage grayed out with a grayed out ā€œdisconnectedā€ under it.

$ ifconfig enp1s0

outputs thisā€¦

enp1s0 Link encap:Ethernet HWaddr 68:f7:28:71:6f:a2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:21717 errors:0 dropped:0 overruns:0 frame:0
TX packets:15079 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16184186 (16.1 MB) TX bytes:2009111 (2.0 MB)
Interrupt:34 Base address:0xc000

$ netstat -i
outputs thisā€¦

Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
enp1s0 1500 0 21717 0 0 0 15079 0 0 0 BMU
lo 65536 0 2143 0 0 0 2143 0 0 0 LRU
wlp3s0 1500 0 3385 0 0 0 1047 0 0 0 BMRU

$ sudo lshw -C network
outputs this for the ethernetā€¦

*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:01:00.0
logical name: enp1s0
version: 10
serial: 68:f7:28:71:6f:a2
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.041.00-NAPI duplex=half latency=0 link=no multicast=yes port=twisted pair speed=10Mbit/s
resources: irq:34 ioport:2000(size=256) memory:f0a04000-f0a04fff memory:f0a00000-f0a03fff

$ lspci
outputs this in the last three linesā€¦

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter

Hi @larryb,

I forgot to ask, what version of Ubuntu MATE are you using btw?. :smiley:

Kernel: 4.4.0-59-generic x86_64 (64 bit)
Desktop: MATE 1.12.1
Distro: Ubuntu 16.04 xenial

Did you change your software sources download location as I suggested earlier?. :confused:

Yeahā€¦i followed those instructions. Iā€™ll try to get a new ethernet cable to see if that may be the problemā€¦but i doubt it.

1 Like

Hi @larryb,

you can try using the ā€œiperfā€ command and see if you can see whats happening on your network with that?:

sudo apt-get install iperf

https://openmaniak.com/iperf.php

http://manpages.ubuntu.com/manpages/zesty/man1/iperf.1.html

Let us know how you get on Larry!. :smiley: