You are not logged in.

#1 2019-09-01 07:27:37

rzrscm
Member
Registered: 2012-11-17
Posts: 95

losing internet and having to rerun dhcpcd to reconnect

I connect my desktop computer to the internet using a router with ddwrt to receive wifi. Recently I've started losing Internet after a few moments. When this happens, I have to pkill dhcpcd and then rerun it, but I lose Internet after a few moments every time. I believe that this is happening because of an unstable Internet connection since it does this when it momentarily loses the connection and I recently moved to a place with a less reliable Internet connection, but I can't figure out a way to prevent it from losing Internet altogether and having to rerun dhcpcd when this happens. I've checked and double checked all of my settings already and am at a loss. Any help would be appreciated. Thank you.

Offline

#2 2019-09-01 07:30:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: losing internet and having to rerun dhcpcd to reconnect

systemctl list-unit-files --state=enabled

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-09-01 07:47:49

rzrscm
Member
Registered: 2012-11-17
Posts: 95

Re: losing internet and having to rerun dhcpcd to reconnect

>> systemctl list-unit-files --state=enabled                                                                                                                 ~
UNIT FILE                          STATE  
org.cups.cupsd.path                enabled
autovt@.service                    enabled
avahi-daemon.service               enabled
dbus-org.freedesktop.Avahi.service enabled
getty@.service                     enabled
lm_sensors.service                 enabled
org.cups.cupsd.service             enabled
sshd.service                       enabled
avahi-daemon.socket                enabled
org.cups.cupsd.socket              enabled
remote-fs.target                   enabled

11 unit files listed.

Enabled dhcpcd after I realized that it wasn't in this list, but that doesn't solve the problem. I don't know if this is relevant, but when I lose Internet I'm still connected to the LAN and can access the router and everything.

Last edited by rzrscm (2019-09-01 07:59:29)

Offline

#4 2019-09-01 08:00:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: losing internet and having to rerun dhcpcd to reconnect

How are you managing your network connection?

Also, see How To Ask Questions The Smart Way.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-09-01 08:16:26

rzrscm
Member
Registered: 2012-11-17
Posts: 95

Re: losing internet and having to rerun dhcpcd to reconnect

I just use dhcpcd to connect through an ethernet connection from the ddwrt router acting as a client bridge.

[edit] I just tried setting systemd-networkd to manage the network and the same problem persisted.

Last edited by rzrscm (2019-09-01 08:53:46)

Offline

#6 2019-09-01 12:51:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: losing internet and having to rerun dhcpcd to reconnect

rzrscm wrote:

when I lose Internet I'm still connected to the LAN and can access the router and everything.

Then this does not seem to be an arch linux issue, but a ddwrt one.

rzrscm wrote:

I just use dhcpcd to connect through an ethernet connection from the ddwrt router acting as a client bridge.

So you have a wired connection to the ddwrt system which connects to a wireless network?  Or do you connect wirelessly to the ddwrt system?  In any case, it sounds like your arch system is not losing it's connectivity, but that your ddwrt system is.  If this is the case, you should troubleshoot that system on the appropriate support channels.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2019-09-01 13:32:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,420

Re: losing internet and having to rerun dhcpcd to reconnect

How exactly do you determine that you "lose internet"?

Offline

#8 2019-09-01 17:30:24

rzrscm
Member
Registered: 2012-11-17
Posts: 95

Re: losing internet and having to rerun dhcpcd to reconnect

Trilby wrote:
rzrscm wrote:

when I lose Internet I'm still connected to the LAN and can access the router and everything.

Then this does not seem to be an arch linux issue, but a ddwrt one.

rzrscm wrote:

I just use dhcpcd to connect through an ethernet connection from the ddwrt router acting as a client bridge.

So you have a wired connection to the ddwrt system which connects to a wireless network?  Or do you connect wirelessly to the ddwrt system?  In any case, it sounds like your arch system is not losing it's connectivity, but that your ddwrt system is.  If this is the case, you should troubleshoot that system on the appropriate support channels.

Yes, it's a wired connection to the ddwrt system which connects to the wireless network. When I connect anything else (such as a laptop running Windows) to the router it keeps an Internet connection just fine, which is why I assumed that the issue was my linux system.

seth wrote:

How exactly do you determine that you "lose internet"?

I'm unable to ping or otherwise access anything on the Internet.

Offline

#9 2019-09-01 17:33:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: losing internet and having to rerun dhcpcd to reconnect

What's the actual ping command and error?  Can you ping IP addresses?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2019-09-01 17:42:48

rzrscm
Member
Registered: 2012-11-17
Posts: 95

Re: losing internet and having to rerun dhcpcd to reconnect

Trilby wrote:

What's the actual ping command and error?  Can you ping IP addresses?

If I ping a web site or IP address using the ping command (ping google.com) it just hangs with no output.

Offline

#11 2019-09-01 19:07:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,420

Re: losing internet and having to rerun dhcpcd to reconnect

Any stale leases in the router?
Also, did you try to reboot the router?

Offline

#12 2019-09-01 19:48:24

rzrscm
Member
Registered: 2012-11-17
Posts: 95

Re: losing internet and having to rerun dhcpcd to reconnect

seth wrote:

Any stale leases in the router?
Also, did you try to reboot the router?

None that I can see and yes.

Offline

Board footer

Powered by FluxBB