You are not logged in.

#1 2020-10-26 17:26:22

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

[SOLVED] Wired connection dropping randomly for a few seconds

I don't know why, but my wired connection keeps dropping randomly. After being down for about ten seconds, it turns back up again with no problems. This happens randomly, as it can happen after one hour of use, or after 10 minutes, and it keeps happening all the time, a bunch of times a day.
I tried to disable and enable the dhcpcd service a couple of times. I also tried to use netctl to use a static IP instead of a dinamic one, but i didn't have any luck.
I don't know exactly how to fix it, since this is something that happened before with an ArcoLinux install i had previously. Then i switched to Debian and there was no problem with it. I switched back to Arch a couple of days ago, so this is a pretty fresh install, and this droppings started happening again. It's not that big of a deal, but it's annoying.

Some info i took after reading the wiki:

 
> lspci -v
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
	Subsystem: ASUSTeK Computer Inc. P8 series motherboard
	Flags: bus master, fast devsel, latency 0, IRQ 17
	I/O ports at d000 [size=256]
	Memory at f2104000 (64-bit, prefetchable) [size=4K]
	Memory at f2100000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169
> dmesg | grep r8169                                                                                                                                                 
[    6.878103] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[    6.880108] libphy: r8169: probed
[    6.880412] r8169 0000:03:00.0 eth0: RTL8168f/8111f, e0:3f:49:51:09:5b, XID 480, IRQ 30
[    6.880414] r8169 0000:03:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[    7.281702] r8169 0000:03:00.0 enp3s0: renamed from eth0
[   13.640792] RTL8211E Gigabit Ethernet r8169-300:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
[   13.844300] r8169 0000:03:00.0 enp3s0: Link is Down
[   27.582451] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 2217.509576] r8169 0000:03:00.0 enp3s0: Link is Down
[ 2230.978150] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 2474.943565] r8169 0000:03:00.0 enp3s0: Link is Down
[ 2488.418300] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 2644.299450] r8169 0000:03:00.0 enp3s0: Link is Down
[ 2657.713742] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
 

Any help is appreciated. Thanks!

Last edited by Wooleanvs (2020-10-29 19:39:23)

Offline

#2 2020-10-26 17:36:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,310

Re: [SOLVED] Wired connection dropping randomly for a few seconds

What's your output for

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Offline

#3 2020-10-26 18:03:42

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

V1del wrote:

What's your output for

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f                                              

dbus-org.freedesktop.nm-dispatcher.service | system
dhcpcd.service                           | multi-user.target.wants
dirmngr.socket                           | sockets.target.wants
display-manager.service                  | system
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pamac-cleancache.timer                   | multi-user.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
xdg-user-dirs-update.service             | default.target.wants

Offline

#4 2020-10-26 18:19:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,310

Re: [SOLVED] Wired connection dropping randomly for a few seconds

disable and stop dhcpcd or NetworkManager do not have both enabled at the same time

Offline

#5 2020-10-26 18:26:21

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

Okay i think that did it, but ill have to use it for a while to see the results. I didn't notice they were both running. Thank you!

Offline

#6 2020-10-27 23:14:13

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

No, that didn't fix it. I disabled dhcpcd first, and then enable it again, to disable NetworkManager. But nothing changed, i still got the same problem with both of them. I'm not sure what to do next.

Offline

#7 2020-10-27 23:22:35

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] Wired connection dropping randomly for a few seconds

You need to stop and disable only one of both services, if you did that it can't magically come to live again unless you enable it first..

Offline

#8 2020-10-27 23:25:27

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

qinohe wrote:

You need to stop and disable only one of both services, if you did that it can't magically come to live again unless you enable it first..

Yeah i know. I tried doing that with both of them, enabling one and disabling the other. Then i tried the same, but biceversa. But my internet keeps dropping, even using only one of them.

Last edited by Wooleanvs (2020-10-27 23:26:08)

Offline

#9 2020-10-27 23:38:04

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] Wired connection dropping randomly for a few seconds

Well, then the problem may not be with your computer at all, it may also be a faulty cable or problem with the router/modem.
Are you sure anything else like DNS or hosts file etc. is setup the way it should? If you're not sure walk through all steps again. you may even disable both dhcpcd &  NetworkManager and try systemd-networkd, but first go trough all settings needed to get a connection in the first place.

Offline

#10 2020-10-27 23:45:50

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

qinohe wrote:

Well, then the problem may not be with your computer at all, it may also be a faulty cable or problem with the router/modem.
Are you sure anything else like DNS or hosts file etc. is setup the way it should? If you're not sure walk through all steps again. you may even disable both dhcpcd &  NetworkManager and try systemd-networkd, but first go trough all settings needed to get a connection in the first place.

Honestly, i have no idea how to do all that
My internet generally works well, i was using Debian before and i had no problems, and now, i dual boot with windows, and i have no problems there either.
I'll try to check all that you said, although i'm afraid of losing my connection completely, i never touched any of those configs.
Thanks for the help!

Offline

#11 2020-10-28 00:04:55

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] Wired connection dropping randomly for a few seconds

Wooleanvs wrote:

Thanks for the help!

You're welcome, but that's not what's going help you! Arch is a kinda self help program. You need to dive in full, not only get your feet wet. The point is we may pull any bit of info out of you and provide a working setup without you understanding wat the fuck it is you did to make it work. So go and grasp basic networking and if than after you did set it up something doesn't work you also know what info to provide us to understand what's going wrong. Hope it makes sense and you don't feel attacked cause I didn't mean to do that wink

Offline

#12 2020-10-28 08:20:52

seth
Member
Registered: 2012-09-03
Posts: 59,104

Re: [SOLVED] Wired connection dropping randomly for a few seconds

Let's see what's actually going on and please post a complete system journal

sudo journalctl -b |  curl -F 'f:1=<-' ix.io

Offline

#13 2020-10-28 15:46:53

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

seth wrote:

Let's see what's actually going on and please post a complete system journal

sudo journalctl -b |  curl -F 'f:1=<-' ix.io

http://ix.io/2CiL

Here it is. I don't understand any of it lol

Offline

#14 2020-10-28 16:35:52

seth
Member
Registered: 2012-09-03
Posts: 59,104

Re: [SOLVED] Wired connection dropping randomly for a few seconds

Is that supposed to cover a connection loss?
You're getting and losing the carrier at 12:43:50 and re-gain it at 12:44:03 and successfully solicit a lease at 12:44:10 (but the log is only 2 minutes total)

Offline

#15 2020-10-28 16:45:12

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

seth wrote:

Is that supposed to cover a connection loss?
You're getting and losing the carrier at 12:43:50 and re-gain it at 12:44:03 and successfully solicit a lease at 12:44:10 (but the log is only 2 minutes total)

Well, i did that after turning on the PC. I'll wait for a connection loss and do it again, sorry!

Edit: Okay, now i did it after a connection loss. http://ix.io/2Cjo
I can see that it says "carrier lost" and searches for a connection again.

Last edited by Wooleanvs (2020-10-28 17:19:27)

Offline

#16 2020-10-28 19:32:21

seth
Member
Registered: 2012-09-03
Posts: 59,104

Re: [SOLVED] Wired connection dropping randomly for a few seconds

The carrier unmotivatedly drops out after ~45 minutes each and you obtain 60 minute leases.
Do you control the router?
Can you give the client an unlimited (or much longer, eg. 24h) lease?

Offline

#17 2020-10-28 20:23:31

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

seth wrote:

The carrier unmotivatedly drops out after ~45 minutes each and you obtain 60 minute leases.
Do you control the router?
Can you give the client an unlimited (or much longer, eg. 24h) lease?

I'm not sure how to do that exactly, i have an internet modem that my company installed in my house and that's it. I never had to do configurations or something. I'm afraid i might have to call them to do something like that. Otherwise, i have no idea how to configure it on my own.

Offline

#18 2020-10-28 20:47:59

seth
Member
Registered: 2012-09-03
Posts: 59,104

Re: [SOLVED] Wired connection dropping randomly for a few seconds

Your "company" like "a bunch of idiots I pay money so they can feed their children" or just your ISP?

In the former case, that's not a problem… obviously smile

In the latter case, yor router's IP is http://192.168.1.1 - consumer routers typically provide a web frontend and the default login data is printed on the bottom of the box or you got a booklet/card/whatever with it.

Offline

#19 2020-10-28 23:12:49

Wooleanvs
Member
From: Argentina
Registered: 2020-10-26
Posts: 13

Re: [SOLVED] Wired connection dropping randomly for a few seconds

seth wrote:

Your "company" like "a bunch of idiots I pay money so they can feed their children" or just your ISP?

In the former case, that's not a problem… obviously smile

In the latter case, yor router's IP is http://192.168.1.1 - consumer routers typically provide a web frontend and the default login data is printed on the bottom of the box or you got a booklet/card/whatever with it.

Okay, i was able to enter that web and change the lease, it was, like you said, 3600 seconds. I put it to do that after 24 hs, so let's hope that fixes it. I have no idea what's the lease thing, but i'll take your word for it. Thank you so much!

Offline

#20 2020-10-29 01:06:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,232

Re: [SOLVED] Wired connection dropping randomly for a few seconds


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#21 2020-10-29 19:37:37

PlainArch
Member
Registered: 2019-09-07
Posts: 3

Re: [SOLVED] Wired connection dropping randomly for a few seconds

Mark it solved, please. :-)

Offline

Board footer

Powered by FluxBB