You are not logged in.

#1 2020-05-30 08:20:14

mayagamer
Member
Registered: 2020-02-18
Posts: 18

[SOLVED] dhcp doesn't work almost every time linux starts

Recently, most of time when I power it on or reboot the computer, I can't open any websites. (Only occasionally, it works fine.)
I can ping ip address  (e.g. 192.168.1.1 or 114.114.114.114) without problem. But if I do anything with domain names like www.bing.com, it says it can't find the address.
It can be fixed by disable Wired Connection and enable it again. but I don't feel like doing it every time I use computer.

There are some logs may be relevant:

dhcpcd: route socket overflowed (rcvbuflen 106496) - learning interface state

and

dhcpcd: process 484 unexpectedly terminating on signal 15

Is there any way I can fix it permanently? Thanks in advance!

Last edited by mayagamer (2020-05-31 01:15:40)

Offline

#2 2020-05-30 09:55:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: [SOLVED] dhcp doesn't work almost every time linux starts

What's your output for

systemctl list-unit-files --state=enabled

Online

#3 2020-05-30 13:02:50

mayagamer
Member
Registered: 2020-02-18
Posts: 18

Re: [SOLVED] dhcp doesn't work almost every time linux starts

V1del wrote:

What's your output for

systemctl list-unit-files --state=enabled

The output shows:

UNIT FILE                                  STATE   VENDOR PRESET
autovt@.service                            enabled disabled     
bluetooth.service                          enabled disabled     
dbus-org.bluez.service                     enabled disabled     
dbus-org.freedesktop.nm-dispatcher.service enabled disabled     
dhcpcd.service                             enabled disabled     
display-manager.service                    enabled disabled     
docker.service                             enabled disabled     
gdm.service                                enabled disabled     
getty@.service                             enabled enabled      
jenkins.service                            enabled disabled     
NetworkManager-dispatcher.service          enabled disabled     
NetworkManager-wait-online.service         enabled disabled     
NetworkManager.service                     enabled disabled     
smartd.service                             enabled disabled     
sshd.service                               enabled disabled     
remote-fs.target                           enabled enabled      
fstrim.timer                               enabled disabled     

17 unit files listed.

Offline

#4 2020-05-30 13:20:32

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] dhcp doesn't work almost every time linux starts

dhcpcd and networkmanager will run into a race over the NICs, pick one and stop/disable the other.

Offline

#5 2020-05-30 14:49:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: [SOLVED] dhcp doesn't work almost every time linux starts

And ensure that you don't have an additional second dhcpcd instance that isn't listed in this output: https://bbs.archlinux.org/viewtopic.php?id=256156

Online

#6 2020-05-31 00:21:19

mayagamer
Member
Registered: 2020-02-18
Posts: 18

Re: [SOLVED] dhcp doesn't work almost every time linux starts

What if I simply uninstall dhcpcd (since networkmanager is part of GNOME with better GUI control)? Any side effects would happen?

Offline

#7 2020-05-31 01:03:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: [SOLVED] dhcp doesn't work almost every time linux starts

Not really no. Unless networkmanager breaks for some reason and you'd need a fallback.

Online

#8 2020-05-31 01:14:45

mayagamer
Member
Registered: 2020-02-18
Posts: 18

Re: [SOLVED] dhcp doesn't work almost every time linux starts

That's great! I uninstalled it just now and problem solved!
Thank you all!

Offline

Board footer

Powered by FluxBB