dhcpcd-discuss

Re: dhcpcd-9.0.0 released

Tim Tassonis

Sat Apr 04 14:49:23 2020

Hi Roy

On 4/3/20 7:04 PM, Roy Marples wrote:
On 03/04/2020 16:44, Tim Tassonis wrote:
Hi Roy

On 4/2/20 2:30 PM, Roy Marples wrote:
with the following changes:

  * Privilege Separation

root@lgl23t:/var/lib/dhcpcd# ps -ef |grep dhcp
dhcpcd    2010     1  0 17:12 ?        00:00:00 /sbin/dhcpcd enp0s3 -b -q
root      2011  2010  0 17:12 ?        00:00:00 /sbin/dhcpcd enp0s3 -b -q
dhcpcd    2012  2010  0 17:12 ?        00:00:00 /sbin/dhcpcd enp0s3 -b -q
dhcpcd    2160  2011  0 17:12 ?        00:00:00 /sbin/dhcpcd enp0s3 -b -q
dhcpcd    2357  2011  0 17:12 ?        00:00:00 /sbin/dhcpcd enp0s3 -b -q
dhcpcd    2560  2011  0 17:12 ?        00:00:00 /sbin/dhcpcd enp0s3 -b -q
root      2660  2627  0 17:18 pts/0    00:00:00 grep dhcp

Looks fine!
Hard to tell because your linux does not allow changing the process command reported by ps.

You will get less processes by running in master mode - ie removing the enp0s3 argument from the command line. If you really need to limit which interfaces dhcpcd runs on then do it in /etc/dhcpcd.conf and just start it for all. I use bridges, taps, gif's and vpns on my router and dhcpcd leaves them alone by default.


My distro is based on linux from scratch, there, the network config by default starts dhcpcd for every device that is configured to use it. Maybe I will discuss this on their list, but for the moment I guess it is simpler to setup networking if left like this (no editing of config files needed).


Also, I have a couple of routers that do dhcpcd on the first physical interface and provide dhcp via dnsmasq on the other two interfaces. I think, explicitely specifiying the interface there is also a good idea.

Bye
Tim

References:
dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedTim Tassonis
Re: dhcpcd-9.0.0 releasedRoy Marples
Archive administrator: postmaster@marples.name