[SOLVED] Wired Ethernet disconnect every time random
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
I must disagree. His network connection may still be valid, but something is going flaky in name resolution. It is possible that forwarding the nameserver port is unstable, that DHCP lease negotiation disrupts it even though this box is now using a static address, or that something on the host itself is renewing the nameserver configuration from time to time. I have seen examples of all three at different times in the past.
I have seen Network Manager cause this kind of problem, but not in recent versions. Any recent version would have to be misconfigured to generate that symptom.
I must disagree. His network connection may still be valid, but something is going flaky in name resolution. It is possible that forwarding the nameserver port is unstable, that DHCP lease negotiation disrupts it even though this box is now using a static address, or that something on the host itself is renewing the nameserver configuration from time to time. I have seen examples of all three at different times in the past.
I have seen Network Manager cause this kind of problem, but not in recent versions. Any recent version would have to be misconfigured to generate that symptom.
First, I would isolate the general cause. For this you will boot from a live-cd image (knoppix, tinycore, puppy linux, ... almost any will do: use one you like) and see if browsing when running that for an hour or two still shows the symptoms.
If you still have the symptoms, it is either hardware related or an interaction problem specific to Linux drivers and your network device. If the symptoms vanish, then it is setting or software related and specific to your install.
If it is hardware related, you have to decide how much you want to invest in finding and avoiding or replacing the hardware causing the problem.
If it is software or settings, I would go over the network settings at SEVERAL levels to see if I could spot the issue. Disable the DHCP client if you are using static network settings. On mine I have removed Network Manager and installed an alternate network client settings tool, but that is somewhat extreme for someone who is not an experienced SYSADM.
Once you perform the live-cd session test, let us know your results and we may have more specific "next steps" to recommend.
First, I would isolate the general cause. For this you will boot from a live-cd image (knoppix, tinycore, puppy linux, ... almost any will do: use one you like) and see if browsing when running that for an hour or two still shows the symptoms.
If you still have the symptoms, it is either hardware related or an interaction problem specific to Linux drivers and your network device. If the symptoms vanish, then it is setting or software related and specific to your install.
If it is hardware related, you have to decide how much you want to invest in finding and avoiding or replacing the hardware causing the problem.
If it is software or settings, I would go over the network settings at SEVERAL levels to see if I could spot the issue. Disable the DHCP client if you are using static network settings. On mine I have removed Network Manager and installed an alternate network client settings tool, but that is somewhat extreme for someone who is not an experienced SYSADM.
Once you perform the live-cd session test, let us know your results and we may have more specific "next steps" to recommend.
okay, I'll do these tests, thank you so much for the moment, I'll let you know
First, I would isolate the general cause. For this you will boot from a live-cd image (knoppix, tinycore, puppy linux, ... almost any will do: use one you like) and see if browsing when running that for an hour or two still shows the symptoms.
If you still have the symptoms, it is either hardware related or an interaction problem specific to Linux drivers and your network device. If the symptoms vanish, then it is setting or software related and specific to your install.
If it is hardware related, you have to decide how much you want to invest in finding and avoiding or replacing the hardware causing the problem.
If it is software or settings, I would go over the network settings at SEVERAL levels to see if I could spot the issue. Disable the DHCP client if you are using static network settings. On mine I have removed Network Manager and installed an alternate network client settings tool, but that is somewhat extreme for someone who is not an experienced SYSADM.
Once you perform the live-cd session test, let us know your results and we may have more specific "next steps" to recommend.
I tried with a live distribution of knoppix, but ninetees it seems like it has the same problems. I tried in the file /etc/NetworkManager/NetworkManager.conf to comment on the line related to dns = dnsmasq and nothing.
I'm trying on Windows with virtualbox and Mint and it's all right on the first shot without making any configuration.
For security, I bought a dedicated network card to see how it goes. Never had these problems, I do not really understand where the problem is.
Re: the network manager configuration -- if you are running DNSMASQ then that setting is probably just fine. The resolv.conf entry directing to 127.0.1.1 is likley wrong. It should be 127.0.0.1 (the loopback interface) with DNSMASQ set to query the real external nameservers.
See if you can check the DNSMASQ configuration and if it is correct.
If knoppix is having the same issue, then it seems either hardware related or something it is pulling off of the DHCP server during startup. Can you check your DHCP server for the settings it is pushing to the DHCP clients? (Possibly something tied to the mac address of this one machine.)
By this test you have eliminated those things specific to your hard disk installation alone. Good job so far.
Re: the network manager configuration -- if you are running DNSMASQ then that setting is probably just fine. The resolv.conf entry directing to 127.0.1.1 is likley wrong. It should be 127.0.0.1 (the loopback interface) with DNSMASQ set to query the real external nameservers.
See if you can check the DNSMASQ configuration and if it is correct.
If knoppix is having the same issue, then it seems either hardware related or something it is pulling off of the DHCP server during startup. Can you check your DHCP server for the settings it is pushing to the DHCP clients? (Possibly something tied to the mac address of this one machine.)
By this test you have eliminated those things specific to your hard disk installation alone. Good job so far.
Interesting! And what made you try that?
You may want to come back and mark the thread "solved", to give hope to anyone else that comes looking for clues to the same issue.
Interesting! And what made you try that?
You may want to come back and mark the thread "solved", to give hope to anyone else that comes looking for clues to the same issue.
Done
I was using windows and I was examining all the details of the intel driver and I noticed this setting that is set in windows on 100 mbps full duplex. It was the only thing I had not done yet and I did it, I would never have come by logic, I did not understand why it should be done and it does not automatically negotiate.
Done
I was using windows and I was examining all the details of the intel driver and I noticed this setting that is set in windows on 100 mbps full duplex. It was the only thing I had not done yet and I did it, I would never have come by logic, I did not understand why it should be done and it does not automatically negotiate.
I have seen the duplex setting auto-negotiate WRONG, but the last time was in 1998 I believe. It was never common, and I thought it had been fixed in all hardware LONG ago. Congratulations again!
I have the same problem, wired ethernet goes out randomly. Disconnecting then reconnecting in the Ubuntu toolbar usually makes it come back. WiFi works fine, dual-booting into OSX Yosemite works flawlessly either eithernet wired or WiFi.
I tried the "solved it" command: sudo ethtool -s enp5s0 speed 100 duplex full
but I get the error
Cannot get current device settings: No such device
not setting speed
not setting duplex
My settings:
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
I have the same problem, wired ethernet goes out randomly. Disconnecting then reconnecting in the Ubuntu toolbar usually makes it come back. WiFi works fine, dual-booting into OSX Yosemite works flawlessly either eithernet wired or WiFi.
I tried the "solved it" command: sudo ethtool -s enp5s0 speed 100 duplex full
but I get the error
Cannot get current device settings: No such device
not setting speed
not setting duplex
My settings:
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
Just one. You ran a command to set parameters for interface enp5s0 , but your REAL interface seems to be enp2s0f0. I would have a closer look at what interface is recognised and working when everything is fine and record that. That is the one you want to set and activate when things go south.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.