LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Wired Ethernet disconnect every time random (https://www.linuxquestions.org/questions/linux-networking-3/wired-ethernet-disconnect-every-time-random-4175622089/)

massimo0315 01-21-2018 07:37 AM

Wired Ethernet disconnect every time random
 
Hi I have this configuration:
MSI X370 Carbon Pro with ethernet controller Intel Gigabit I211
S.O Mint 18.3 with Kernel LInux 4.10.0-38-generic X86_64

I tried many linux distribution and each other do the same thing: disconnect ethernet every time random(more frequently when I open pages in the firefox browser)
I Post here some output result:

sudo lshw -C network



Code:

*-network             
      description: Ethernet interface
      product: I211 Gigabit Network Connection
      vendor: Intel Corporation
      physical id: 0
      bus info: pci@0000:1e:00.0
      logical name: enp30s0
      version: 03
      serial: 30:9c:23:04:64:6f
      size: 100Mbit/s
      capacity: 1Gbit/s
      width: 32 bits
      clock: 33MHz
      capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.4.0-k duplex=full firmware=0. 6-2 ip=192.168.1.10 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
      resources: irq:25 memory:fd600000-fd61ffff ioport:f000(size=32) memory:fd620000-fd623fff




lspci
Code:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1450
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:03.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1454
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1454
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1460
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1461
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1462
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1463
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1464
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1465
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1466
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1467
01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a804
03:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43b9 (rev 02)
03:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43b5 (rev 02)
03:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b0 (rev 02)
04:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
1e:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
23:00.0 USB controller: ASMedia Technology Inc. Device 2142
24:00.0 VGA compatible controller: NVIDIA Corporation Device 1c82 (rev a1)
24:00.1 Audio device: NVIDIA Corporation Device 0fb9 (rev a1)
25:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
25:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1456
25:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 145c
26:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
26:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
26:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457

I solved everything like this:

Code:

sudo ethtool -s enp5s0 speed 100 duplex full

wpeckham 01-21-2018 07:49 AM

Can you provide some of the detail about your IP and higher level interface settings?
I am interested in the routing, DNS/ name resolution, and firewall settings.

[[nitpick on]]I am confused about your use of the term "random". If you can take action that triggers or accelerates the event, it is not actually random. If you mean that there is no clear cause that you can detect, that has meaning but does not imply random.[[nitpick off]]

massimo0315 01-21-2018 08:03 AM

Quote:

Originally Posted by wpeckham (Post 5809324)
Can you provide some of the detail about your IP and higher level interface settings?
I am interested in the routing, DNS/ name resolution, and firewall settings.

[[nitpick on]]I am confused about your use of the term "random". If you can take action that triggers or accelerates the event, it is not actually random. If you mean that there is no clear cause that you can detect, that has meaning but does not imply random.[[nitpick off]]


Yes all here:

IP
Code:


enp30s0  Link encap:Ethernet  IndirizzoHW 30:9c:23:04:64:6f 
          indirizzo inet:192.168.1.10  Bcast:192.168.1.255  Maschera:255.255.255.0
          indirizzo inet6: fe80::4ecd:f499:4468:f620/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5880 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000
          Byte RX:5130739 (5.1 MB)  Byte TX:891522 (891.5 KB)
          Memoria:fd600000-fd61ffff

lo        Link encap:Loopback locale 
          indirizzo inet:127.0.0.1  Maschera:255.0.0.0
          indirizzo inet6: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1902 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1902 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000
          Byte RX:169955 (169.9 KB)  Byte TX:169955 (169.9 KB)


/etc/network/interfaces

Code:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


/etc/resolv.conf

Code:



# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#    DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search fritz.box

Wich command I need to view Firewall settings and output to you?

I mean that: while I browse on Internet every time random the ethernet connection go down and after some second come back online.

wpeckham 01-21-2018 04:10 PM

1. How do you know that the ethernet connection goes down? What evidence do you observe that would support this?

2. What lives on the address 127.0.1.1? Are you sure that there is a service there that serves DNS?
(had that address been 127.0.0.1 I might suspect DNSMASQ or something like it was running on your box and caching nameserver data, but 127.0.1.1 is not listed as an address for any interface on your box.

massimo0315 01-22-2018 01:54 PM

Soon I'll upload a video so I'm as clear as possible about what happens

EDIT: look ---> https://youtu.be/7PUEdQjy0Sc
Go to minute 2.00

I do not understand but it seems that it only happens when I use various browsers or chromium (and I do not use proxy)or maybe it's a coincidence

massimo0315 01-24-2018 01:42 PM

up up up

frankbell 01-24-2018 08:34 PM

Frankly, it is highly unlikely that a dropped or intermittent ethernet connection is a software problem. (I won't say impossible, because the computer might hear me and decide to prove me wrong.)

Even if you are confident it's software-related, you should test the cables and the cable jacks all the way back to the router just to rule out the possibility that it's hardware, because, if it is hardware, not amount of tinkering with software will fix it.

massimo0315 01-25-2018 04:51 AM

Quote:

Originally Posted by frankbell (Post 5811141)
Frankly, it is highly unlikely that a dropped or intermittent ethernet connection is a software problem. (I won't say impossible, because the computer might hear me and decide to prove me wrong.)

Even if you are confident it's software-related, you should test the cables and the cable jacks all the way back to the router just to rule out the possibility that it's hardware, because, if it is hardware, not amount of tinkering with software will fix it.

I've two hard disk and two S.O. With Windows 10 no problem, with Linux yes. No hardware problem for me.

massimo0315 01-27-2018 09:10 AM

up up up

lazydog 01-27-2018 10:08 AM

Is your IP Address static or DHCP? If DHCP what device is the DHCP server? Next question is if you are using DHCP what is the lease time?

massimo0315 01-27-2018 10:16 AM

Quote:

Originally Posted by lazydog (Post 5812198)
Is your IP Address static or DHCP? If DHCP what device is the DHCP server? Next question is if you are using DHCP what is the lease time?


On my router the IP-MAC address association has been made and therefore the machine always receives the same IP.

massimo0315 01-27-2018 10:55 AM

Then, I report updates: even if my router has the IP-MAC address association and always delivers the same IP to my machine, I tried to set the static IP address via software on the linux PC in this way:

auto enp30s0
iface enp30s0 inet static
address 192.168.1.10
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1


Result: Now it seems to be much better, but it is absurd. It no longer appears to me that the ethernet controller has disconnected and this is good at last, pinging to different sites is always okay, never a negative response and zero packets lost. But sometimes on the browser (I'm using chromium) it seems that there is no internet connection.

massimo0315 01-27-2018 12:04 PM

I have updates: ethernet is now perfect, but the problem I've identified is DNS

I put in /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

They work, but occasionally randomly when I'm on the browser I get "unable to resolve host" and then after a few seconds everything works again and normally.

lazydog 01-27-2018 03:07 PM

Yeah, your network still has issues. By setting a static IP Address you have solved the DHCP issue, which is still going on, but you sometimes cannot resolve hosts. Reason for you not being able to resolve host is because you are still losing your internet connection. Have you talked to your service provider yet?

Check this by running a continuous ping to a couple of different sites and when you cannot resolve check your pings and see if anything dropped.

massimo0315 01-27-2018 03:36 PM

Quote:

Originally Posted by lazydog (Post 5812278)
Yeah, your network still has issues. By setting a static IP Address you have solved the DHCP issue, which is still going on, but you sometimes cannot resolve hosts. Reason for you not being able to resolve host is because you are still losing your internet connection. Have you talked to your service provider yet?

Check this by running a continuous ping to a couple of different sites and when you cannot resolve check your pings and see if anything dropped.


then, I repeat, my connection with the service provider is excellent. I also have Windows on the same machine and there are no problems.


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