You are not logged in.

#1 2017-11-04 11:37:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,926
Website

Stopping dhcp from running if no connection found [Solved]

Have a weird issue with Network Manager. On booting my desktop systemd is looking for dhcpd

dhcpcd@enp3s0.service                                                                                 loaded failed failed    dhcpcd on enp3s0 

Then it hangs for 1 minute 30s while it is connecting, trying to disable but it returns on next boot.

I use wireless so there is no need to look for connection.

Do not have the problem on my laptop...

Not sure if it is a runlevel problem?

Last edited by Mr Green (2017-11-05 08:53:07)


Mr Green

Offline

#2 2017-11-04 11:42:04

nesk
Member
Registered: 2011-03-31
Posts: 182

Re: Stopping dhcp from running if no connection found [Solved]

Mr Green wrote:

Not sure if it is a runlevel problem?

No, because there are no runlevels in systemd smile

Mr Green wrote:

Have a weird issue with Network Manager. On booting my desktop systemd is looking for dhcpd

You should not have both running, see wiki https://wiki.archlinux.org/index.php/Ne … HCP_client

Offline

#3 2017-11-04 11:48:30

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,926
Website

Re: Stopping dhcp from running if no connection found [Solved]

Yes and no, maybe I misunderstood

https://wiki.archlinux.org/index.php/sy … md_targets

If I disable dhcp service it simply returns on next boot


Mr Green

Offline

#4 2017-11-04 11:50:08

nesk
Member
Registered: 2011-03-31
Posts: 182

Re: Stopping dhcp from running if no connection found [Solved]

Hm, maybe you have NM using dhcpcd as a DHCP client from a long time ago? Post your /etc/NetworkManager/NetworkManager.conf

Offline

#5 2017-11-04 13:00:32

seth
Member
Registered: 2012-09-03
Posts: 65,231

Re: Stopping dhcp from running if no connection found [Solved]

systemctl list-unit-files --state=enabled

disable the service and run the above again. reboot and run int once more. post all three outputs.

Offline

#6 2017-11-04 13:25:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,926
Website

Re: Stopping dhcp from running if no connection found [Solved]

mrgreen@arch ~]$ systemctl list-unit-files --state=enabled
UNIT FILE                                   STATE  
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.nm-dispatcher.service  enabled
display-manager.service                     enabled
lxdm.service                                enabled
NetworkManager-dispatcher.service           enabled
NetworkManager.service                      enabled
pacman-init.service                         enabled
remote-fs.target                            enabled

8 unit files listed.
[mrgreen@arch ~]$ sudo systemctl disable dhcpcd@enp3s0.service 
[mrgreen@arch ~]$ systemctl list-unit-files --state=enabled
UNIT FILE                                   STATE  
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.nm-dispatcher.service  enabled
display-manager.service                     enabled
lxdm.service                                enabled
NetworkManager-dispatcher.service           enabled
NetworkManager.service                      enabled
pacman-init.service                         enabled
remote-fs.target                            enabled

8 unit files listed.

Does not make any difference

# Configuration file for NetworkManager.
# See "man 5 NetworkManager.conf" for details.

Mr Green

Offline

#7 2017-11-04 13:30:30

seth
Member
Registered: 2012-09-03
Posts: 65,231

Re: Stopping dhcp from running if no connection found [Solved]

It's not enabeld to begin with. Either networkmanager generates and invokes it on the fly or sth. entirely different tries to start it.

Offline

#8 2017-11-05 08:52:53

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,926
Website

Re: Stopping dhcp from running if no connection found [Solved]

Have renamed service to 'munch' and now system boots as it should. You are more than likely right that Network Manager is trying to start a wired connection. As I have said it does not happen on my laptop so no idea why it should be any different.

Anyway thanks for your help, marking as Solved


Mr Green

Offline

Board footer

Powered by FluxBB