You are not logged in.

#1 2014-10-15 00:02:27

dsar
Member
From: Saint Petersburg
Registered: 2014-10-09
Posts: 44

dhcpcd & dhclient

Hi,

I am trying to understand the difference between dhcpcd and dhclient but I don't get it.
Also, I am confused a little bit with my i3wm status bar.
what's the difference between:

run_watch DHCP {
        pidfile = "/var/run/dhclient*.pid"
}

and...

run_watch DHCP {
       pidfile = "/var/run/dhcpcd*.pid"
}

Most of the repositories I saw on github have the first file but this one doesn't exist on my system.
If I do the second way I get DHCP: yes

Could someone make it clear to me?

Regards.

Offline

#2 2014-10-15 00:17:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: dhcpcd & dhclient

This:

pacman -Ss dhcp client

should help.

Offline

#3 2014-10-15 00:20:21

dsar
Member
From: Saint Petersburg
Registered: 2014-10-09
Posts: 44

Re: dhcpcd & dhclient

tomk wrote:

This:

pacman -Ss dhcp client

should help.

core/dhcpcd 6.5.0-1 (base) [installed]
    RFC2131 compliant DHCP client daemon
extra/dhclient 4.3.1-1 [installed]
    A standalone DHCP client from the dhcp package
extra/dhcp 4.3.1-1
    A DHCP server, client, and relay agent

everything is installed.. but why "/var/run/dhclient*.pid" does not exit ?

Last edited by dsar (2014-10-15 00:21:06)

Offline

#4 2014-10-15 00:28:58

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: dhcpcd & dhclient

Better question: why have you installed both of them?

Offline

#5 2014-10-15 00:30:07

dsar
Member
From: Saint Petersburg
Registered: 2014-10-09
Posts: 44

Re: dhcpcd & dhclient

tomk wrote:

Better question: why have you installed both of them?

I had the first one from the base system
and then I installed the second one because I wanted to see if it will generate the file hmm

So what's the main difference?

Last edited by dsar (2014-10-15 00:35:29)

Offline

#6 2014-10-15 00:36:21

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: dhcpcd & dhclient

As I do not use dhcp I'm not sure, but I think they are conflicting. To my knowlage you can have only one dhcp utility.

Offline

#7 2014-10-15 00:37:38

dsar
Member
From: Saint Petersburg
Registered: 2014-10-09
Posts: 44

Re: dhcpcd & dhclient

bstaletic wrote:

As I do not use dhcp I'm not sure, but I think they are conflicting. To my knowlage you can have only one dhcp utility.

Thank you for your response!
Both of them do exactly the same thing?

Offline

#8 2014-10-15 00:39:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: dhcpcd & dhclient

Why does it matter? You already said dhcpcd works for you.

Offline

#9 2014-10-15 02:00:06

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

Re: dhcpcd & dhclient

The packages certainly don't conflict - no more than a chromium package conflicts with firefox.  They are just two different tools to accomplish the same task.  I'm sure there are various test out there that could and have rated the two - I've never heard any weight of evidence in favor of one over the other though.


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

Offline

Board footer

Powered by FluxBB