You are not logged in.

#1 2014-06-24 05:18:36

Amanda S
Member
Registered: 2013-09-21
Posts: 276
Website

OK to disable dhcpcd and use NetworkManager?

After a lot of research and testing, I came to the conclusion that NetworkManager will conflict with dhcpcd no matter what I do, no matter what configuration I try. Disabling dhcpcd, however, fixes everything related to my wired and VPN connections.

Is it really possible that NetworkManager wants to be the King of the Hill and deal with dhcpd stuff by itself? Is there any security issues using it alone with the dhcpcd module disabled?


If it ain't broke, you haven't tweaked it enough...

Offline

#2 2014-06-24 05:42:49

fungle
Member
Registered: 2014-05-01
Posts: 81

Re: OK to disable dhcpcd and use NetworkManager?

I'm pretty sure NetworkManager works with dhclient. In fact I'm pretty sure that it defaults to dhclient if you have it installed. Try installing dhclient and see if that works.

Offline

#3 2014-06-24 05:58:33

Amanda S
Member
Registered: 2013-09-21
Posts: 276
Website

Re: OK to disable dhcpcd and use NetworkManager?

fungle wrote:

I'm pretty sure NetworkManager works with dhclient. In fact I'm pretty sure that it defaults to dhclient if you have it installed. Try installing dhclient and see if that works.

It might work with it, but it works without it smile

It's not like NetworkManager won't work. It works, but with the dhcpcd module unloaded. That's my concern, it's towards not using dhcpcd.


If it ain't broke, you haven't tweaked it enough...

Offline

#4 2014-06-24 06:10:01

fungle
Member
Registered: 2014-05-01
Posts: 81

Re: OK to disable dhcpcd and use NetworkManager?

Amarildo wrote:

It might work with it, but it works without it smile

It's not like NetworkManager won't work. It works, but with the dhcpcd module unloaded. That's my concern, it's towards not using dhcpcd.

That's interesting, are you using static IPs. I'm not quite sure how you get Network Manager working without a dhcp client.

Offline

#5 2014-06-24 06:11:59

Amanda S
Member
Registered: 2013-09-21
Posts: 276
Website

Re: OK to disable dhcpcd and use NetworkManager?

fungle wrote:

That's interesting, are you using static IPs. I'm not quite sure how you get Network Manager working without a dhcp client.

Me neither. I'm using dynamic IP's.

Not that all the tests I'm doing are done in VirtualBox. I'll test it "for real" in the next minutes, I just have to finish watching a Nightwish documentary.

Last edited by Amanda S (2014-06-24 06:14:22)


If it ain't broke, you haven't tweaked it enough...

Offline

#6 2014-06-24 10:31:37

cju
Member
Registered: 2013-06-23
Posts: 194

Re: OK to disable dhcpcd and use NetworkManager?

I can confirm your "issue", though, according to my point of view, it isn't a real one, since there's no need for two services for just one purpose, i.e. simply running/managing a network connection...

Nevertheless, NetworkManager should (and afaics does) run fine without things like dhcpcd or netctl enabled.

Offline

#7 2014-06-24 10:55:24

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

Re: OK to disable dhcpcd and use NetworkManager?

There is a lot of ambiguity in this thread.  Armadillo is referring to loading/unloading a dhcpcd module (there is no such thing!), fungle seems to be referring to installation/removal of packages for dhcpcd or dhclient, and cju is referring to enabling/disabling systemd services.

Armadillo, what are you actually asking?  As mentioned, there is no module to load or unload.  You do need the dhcpcd or dhclient packages installed as NetworkManager will use one of them.  And that is the point: NetworkManager will call dhcpcd.

As all the networking wiki pages say, you should have only one networking service enabled.  So if you've enabled NetworkManager, not only is it ok to disable dhcpcd, you are expected to - NetworkManager will not work properly with the dhcpcd service also enabled.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2014-06-24 15:37:15

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: OK to disable dhcpcd and use NetworkManager?

Trilby wrote:

As all the networking wiki pages say, you should have only one networking service enabled.  So if you've enabled NetworkManager, not only is it ok to disable dhcpcd, you are expected to - NetworkManager will not work properly with the dhcpcd service also enabled.

lol... the last time I installed NetworkManager, it took me several hours to figure out that having dhcpcd enabled as a service was the cause of the continued network failure.   I'll never forget the lesson learned again.  smile


oz

Offline

#9 2014-06-24 15:52:44

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: OK to disable dhcpcd and use NetworkManager?

you can disable dhcpcd systemd service if using networkmanager. Actually you probably shouldn't have dhcpcd service enabled if using networkmanager.
networkmanager will use either dhcpcd or dhclient for retrieving your ip address, so having separate service for dhc* will probably only mess things up.

Offline

#10 2014-06-24 15:54:08

Amanda S
Member
Registered: 2013-09-21
Posts: 276
Website

Re: OK to disable dhcpcd and use NetworkManager?

Trilby wrote:

There is a lot of ambiguity in this thread.  Armadillo is referring to loading/unloading a dhcpcd module (there is no such thing!), fungle seems to be referring to installation/removal of packages for dhcpcd or dhclient, and cju is referring to enabling/disabling systemd services.

Armadillo, what are you actually asking?  As mentioned, there is no module to load or unload.  You do need the dhcpcd or dhclient packages installed as NetworkManager will use one of them.  And that is the point: NetworkManager will call dhcpcd.

As all the networking wiki pages say, you should have only one networking service enabled.  So if you've enabled NetworkManager, not only is it ok to disable dhcpcd, you are expected to - NetworkManager will not work properly with the dhcpcd service also enabled.

Actually, I think I mixed up two things: modprobe and systemctl. What I do is just "systemctl disable dhcpcd" so that I can enable NetworkManager in the same way, otherwise it won't work if dhcpcd is enabled. This is, for what I could see, not a kernel module, but a system service or daemon.
Well, it was almost 4am, I'm guilty.

I don't remove the dhcpcd package at all, I just stop/disable it with systemctl.

EDIT:

ooo wrote:

you can disable dhcpcd systemd service if using networkmanager. Actually you probably shouldn't have dhcpcd service enabled if using networkmanager.
networkmanager will use either dhcpcd or dhclient for retrieving your ip address, so having separate service for dhc* will probably only mess things up.

Thank you. I can sleep again smile

Last edited by Amanda S (2014-06-24 15:57:58)


If it ain't broke, you haven't tweaked it enough...

Offline

Board footer

Powered by FluxBB