Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #247975 > unrolled thread

Alternatives to ISC dhcp-client ?

Started by"Rick Thomas" <rick.thomas@pobox.com>
First post2022-05-08 05:10 +0200
Last post2022-05-09 11:50 +0200
Articles 17 — 10 participants

Back to article view | Back to linux.debian.user


Contents

  Alternatives to ISC dhcp-client ? "Rick Thomas" <rick.thomas@pobox.com> - 2022-05-08 05:10 +0200
    Re: Alternatives to ISC dhcp-client ? Jeremy Ardley <jeremy@ardley.org> - 2022-05-08 05:20 +0200
      Re: Alternatives to ISC dhcp-client ? "Rick Thomas" <rick.thomas@pobox.com> - 2022-05-08 05:50 +0200
        Re: Alternatives to ISC dhcp-client ? Jeremy Ardley <jeremy@ardley.org> - 2022-05-08 06:40 +0200
          Re: Alternatives to ISC dhcp-client ? "Rick Thomas" <rick.thomas@pobox.com> - 2022-05-08 08:50 +0200
            Re: Alternatives to ISC dhcp-client ? Jeremy Ardley <jeremy@ardley.org> - 2022-05-08 10:30 +0200
      Re: Alternatives to ISC dhcp-client ? Vincent Lefevre <vincent@vinc17.net> - 2022-05-09 04:10 +0200
    Re: Alternatives to ISC dhcp-client ? Jeremy Ardley <jeremy@ardley.org> - 2022-05-08 05:20 +0200
      Re: Alternatives to ISC dhcp-client ? "Rick Thomas" <rick.thomas@pobox.com> - 2022-05-08 05:50 +0200
        Re: Alternatives to ISC dhcp-client ? john doe <johndoe65534@mail.com> - 2022-05-08 09:00 +0200
    Re: Alternatives to ISC dhcp-client ? "Rick Thomas" <rick.thomas@pobox.com> - 2022-05-08 13:30 +0200
      Re: Alternatives to ISC dhcp-client ? The Wanderer <wanderer@fastmail.fm> - 2022-05-08 14:40 +0200
    Re: Alternatives to ISC dhcp-client ? Stefan Monnier <monnier@iro.umontreal.ca> - 2022-05-08 14:50 +0200
      Re: Alternatives to ISC dhcp-client ? Dan Ritter <dsr@randomstring.org> - 2022-05-08 15:40 +0200
        Re: Alternatives to ISC dhcp-client ? Oliver Schoede <oliver.schode@online.de> - 2022-05-08 16:40 +0200
          Re: Alternatives to ISC dhcp-client ? Michael Stone <mstone@debian.org> - 2022-05-08 18:20 +0200
        Re: Alternatives to ISC dhcp-client ? Anssi Saari <as@sci.fi> - 2022-05-09 11:50 +0200

#247975 — Alternatives to ISC dhcp-client ?

From"Rick Thomas" <rick.thomas@pobox.com>
Date2022-05-08 05:10 +0200
SubjectAlternatives to ISC dhcp-client ?
Message-ID<EkFsZ-e0gc-1@gated-at.bofh.it>
According to the ISC webpage:

> ISC has ended development on the ISC DHCP client as of early 2022.
> This client implementation is no longer maintained and should not be
> used in production any longer.

Can anybody recommend a good replacement?
Does anybody know what the Debian PTBs are planning for this?

Thanks!
Rick

[toc] | [next] | [standalone]


#247976

FromJeremy Ardley <jeremy@ardley.org>
Date2022-05-08 05:20 +0200
Message-ID<EkFCF-e0mc-3@gated-at.bofh.it>
In reply to#247975

[Multipart message — attachments visible in raw view] — view raw

On 8/5/22 11:14 am, Jeremy Ardley wrote:
>
>
> You can just use systemd-networkd as an IPv4 dhcp client.
>
>

Of note: Using systemd-networkd you should not use NetworkManager or 
networking services. I think both use the ISC dhcp client

Of further note, I moved to systemd-networkd precisely because the ISC 
dhcp client was badly behaved, and no-one at ISC seemed interested in 
fixing it.


-- 
Jeremy

[toc] | [prev] | [next] | [standalone]


#247979

From"Rick Thomas" <rick.thomas@pobox.com>
Date2022-05-08 05:50 +0200
Message-ID<EkG5H-e0vx-1@gated-at.bofh.it>
In reply to#247976
On Sat, May 7, 2022, at 8:19 PM, Jeremy Ardley wrote:
> On 8/5/22 11:14 am, Jeremy Ardley wrote:
>>
>>
>> You can just use systemd-networkd as an IPv4 dhcp client.
>>
>>
>
> Of note: Using systemd-networkd you should not use NetworkManager or 
> networking services. I think both use the ISC dhcp client
>
> Of further note, I moved to systemd-networkd precisely because the ISC 
> dhcp client was badly behaved, and no-one at ISC seemed interested in 
> fixing it.

Thanks for the heads up!
Can you describe in detail what one needs to do in order to switch over?  I.e. what to remove, what to install?  What to configure?

Thanks!
Rick

[toc] | [prev] | [next] | [standalone]


#247980

FromJeremy Ardley <jeremy@ardley.org>
Date2022-05-08 06:40 +0200
Message-ID<EkGS5-e14x-1@gated-at.bofh.it>
In reply to#247979

[Multipart message — attachments visible in raw view] — view raw

On 8/5/22 11:27 am, Rick Thomas wrote:
> Thanks for the heads up!
> Can you describe in detail what one needs to do in order to switch over?  I.e. what to remove, what to install?  What to configure?
>
>
>

This is a recent blogpost of mine showing a more complex installation 
including IPv6 delegation. If you just do the bits that refer to IPv4 it 
should still work.

https://jeremyardley.blogspot.com/2022/04/configuring-systemd-networkd-with.html

-- 
Jeremy

[toc] | [prev] | [next] | [standalone]


#247982

From"Rick Thomas" <rick.thomas@pobox.com>
Date2022-05-08 08:50 +0200
Message-ID<EkITU-e2gM-5@gated-at.bofh.it>
In reply to#247980

On Sat, May 7, 2022, at 9:37 PM, Jeremy Ardley wrote:
> On 8/5/22 11:27 am, Rick Thomas wrote:
>> Thanks for the heads up!
>> Can you describe in detail what one needs to do in order to switch over?
>> I.e. what to remove, what to install?  What to configure?
>
> This is a recent blogpost of mine showing a more complex installation 
> including IPv6 delegation. If you just do the bits that refer to IPv4 it 
> should still work.
>
> https://jeremyardley.blogspot.com/2022/04/configuring-systemd-networkd-with.html
> Jeremy

Thanks!
Rick
PS:  I'll also do the IPv6 part, because I'm interested in that too.

[toc] | [prev] | [next] | [standalone]


#247986

FromJeremy Ardley <jeremy@ardley.org>
Date2022-05-08 10:30 +0200
Message-ID<EkKsF-e3gm-1@gated-at.bofh.it>
In reply to#247982

[Multipart message — attachments visible in raw view] — view raw

On 8/5/22 2:27 pm, Rick Thomas wrote:
> Thanks!
> Rick
> PS:  I'll also do the IPv6 part, because I'm interested in that too.
>

One word of caution moving away from ISC dhcp client is that any 
possibility of it being started by the networking daemon will result in 
very bad behaviour if you have any left-over lease files - whether or 
not you have dhcp set in your /etc/network.interfaces file

In that case, the dhcp server will be spammed many times a second by 
dhclient.

I'll amend my blog post to stop the networking service, kill any 
dhclient processes, and then erase any dhclient lease files

rm -f /var/lib/dhcp/dhclient*


-- 
Jeremy

[toc] | [prev] | [next] | [standalone]


#248028

FromVincent Lefevre <vincent@vinc17.net>
Date2022-05-09 04:10 +0200
Message-ID<El10t-edoB-3@gated-at.bofh.it>
In reply to#247976
On 2022-05-08 11:19:33 +0800, Jeremy Ardley wrote:
> Of note: Using systemd-networkd you should not use NetworkManager or
> networking services. I think both use the ISC dhcp client

And what about NetworkManager users?

Note: it has its own internal DHCP client, but it is not robust on
buggy networks:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933930

And the dhclient hooks are not run:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966618

So I don't use it.

In particular, in my /etc/dhcp/dhclient.conf isc-dhcp-client
configuration file, I have

  prepend domain-name-servers 127.0.0.1;

to be able to use the local nameserver preferably (the nameservers
provided by the DHCP server are still needed on networks that
filter UDP).

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

[toc] | [prev] | [next] | [standalone]


#247977

FromJeremy Ardley <jeremy@ardley.org>
Date2022-05-08 05:20 +0200
Message-ID<EkFCF-e0mc-1@gated-at.bofh.it>
In reply to#247975

[Multipart message — attachments visible in raw view] — view raw

On 8/5/22 10:47 am, Rick Thomas wrote:
> ISC has ended development on the ISC DHCP client as of early 2022.
>> This client implementation is no longer maintained and should not be
>> used in production any longer.
> Can anybody recommend a good replacement?
>

I presently use systemd-networkd which provides its own DHCP v4 and v6 
clients, and servers if you want.

In my network my dual homed router acts as a dhcp client to the ISP and 
gets an IPv4 address and is delegated an IPv6 /56 range.

You can just use systemd-networkd as an IPv4 dhcp client.


-- 
Jeremy

[toc] | [prev] | [next] | [standalone]


#247978

From"Rick Thomas" <rick.thomas@pobox.com>
Date2022-05-08 05:50 +0200
Message-ID<EkG5H-e0vx-3@gated-at.bofh.it>
In reply to#247977
On Sat, May 7, 2022, at 8:14 PM, Jeremy Ardley wrote:
> On 8/5/22 10:47 am, Rick Thomas wrote:
>> ISC has ended development on the ISC DHCP client as of early 2022.
>>> This client implementation is no longer maintained and should not be
>>> used in production any longer.
>> Can anybody recommend a good replacement?
>>
>
> I presently use systemd-networkd which provides its own DHCP v4 and v6 
> clients, and servers if you want.
>
> In my network my dual homed router acts as a dhcp client to the ISP and 
> gets an IPv4 address and is delegated an IPv6 /56 range.
>
> You can just use systemd-networkd as an IPv4 dhcp client.
> Jeremy

Is systemd-networkd automatically installed by Debian?

I ask because my "testing" and "stable" systems all show isc-dhcp-client as installed and running.

Thanks!
Rick

[toc] | [prev] | [next] | [standalone]


#247983

Fromjohn doe <johndoe65534@mail.com>
Date2022-05-08 09:00 +0200
Message-ID<EkJ3z-e2jL-1@gated-at.bofh.it>
In reply to#247978
On 5/8/2022 5:24 AM, Rick Thomas wrote:
> On Sat, May 7, 2022, at 8:14 PM, Jeremy Ardley wrote:
>> On 8/5/22 10:47 am, Rick Thomas wrote:
>>> ISC has ended development on the ISC DHCP client as of early 2022.
>>>> This client implementation is no longer maintained and should not be
>>>> used in production any longer.
>>> Can anybody recommend a good replacement?
>>>
>>
>> I presently use systemd-networkd which provides its own DHCP v4 and v6
>> clients, and servers if you want.
>>
>> In my network my dual homed router acts as a dhcp client to the ISP and
>> gets an IPv4 address and is delegated an IPv6 /56 range.
>>
>> You can just use systemd-networkd as an IPv4 dhcp client.
>> Jeremy
>
> Is systemd-networkd automatically installed by Debian?
>
> I ask because my "testing" and "stable" systems all show isc-dhcp-client as installed and running.
>

For a regular installation of Debian, yes.

--
John Doe

[toc] | [prev] | [next] | [standalone]


#247988

From"Rick Thomas" <rick.thomas@pobox.com>
Date2022-05-08 13:30 +0200
Message-ID<EkNgR-e4WP-1@gated-at.bofh.it>
In reply to#247975
On Sat, May 7, 2022, at 7:47 PM, Rick Thomas wrote:
> According to the ISC webpage:
>
>> ISC has ended development on the ISC DHCP client as of early 2022.
>> This client implementation is no longer maintained and should not be
>> used in production any longer.
>
> Can anybody recommend a good replacement?
> Does anybody know what the Debian PTBs are planning for this?
>
> Thanks!
> Rick

Does anybody know what the Debian developers plan to do about this change of policy by ISC?  I have a feeling it's going to be a problem that will have to be faced reasonably soon.

Rick

[toc] | [prev] | [next] | [standalone]


#247989

FromThe Wanderer <wanderer@fastmail.fm>
Date2022-05-08 14:40 +0200
Message-ID<EkOmB-e5xY-1@gated-at.bofh.it>
In reply to#247988

[Multipart message — attachments visible in raw view] — view raw

On 2022-05-08 at 07:06, Rick Thomas wrote:

> On Sat, May 7, 2022, at 7:47 PM, Rick Thomas wrote:
> 
>> According to the ISC webpage:
>> 
>>> ISC has ended development on the ISC DHCP client as of early
>>> 2022. This client implementation is no longer maintained and
>>> should not be used in production any longer.
>> 
>> Can anybody recommend a good replacement? Does anybody know what
>> the Debian PTBs are planning for this?
>> 
>> Thanks! Rick
> 
> Does anybody know what the Debian developers plan to do about this
> change of policy by ISC?  I have a feeling it's going to be a problem
> that will have to be faced reasonably soon.

I remember reading a discussion on debian-devel recent-ish-ly which
could be relevant. I haven't reviewed it in detail at the moment, but I
think

https://lists.debian.org/debian-devel/2021/09/msg00407.html

would be a good starting point for anyone who does want to review it.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

[toc] | [prev] | [next] | [standalone]


#247990

FromStefan Monnier <monnier@iro.umontreal.ca>
Date2022-05-08 14:50 +0200
Message-ID<EkOwh-e5DC-3@gated-at.bofh.it>
In reply to#247975
Rick Thomas [2022-05-07 19:47:57] wrote:
> According to the ISC webpage:
>> ISC has ended development on the ISC DHCP client as of early 2022.
>> This client implementation is no longer maintained and should not be
>> used in production any longer.
> Can anybody recommend a good replacement?

Depends on your needs, but `busybox` provides a dhcp client that's good
enough for the most common situations.


        Stefan

[toc] | [prev] | [next] | [standalone]


#247991

FromDan Ritter <dsr@randomstring.org>
Date2022-05-08 15:40 +0200
Message-ID<EkPiF-e6aN-3@gated-at.bofh.it>
In reply to#247990
Stefan Monnier wrote: 
> Rick Thomas [2022-05-07 19:47:57] wrote:
> > According to the ISC webpage:
> >> ISC has ended development on the ISC DHCP client as of early 2022.
> >> This client implementation is no longer maintained and should not be
> >> used in production any longer.
> > Can anybody recommend a good replacement?
> 
> Depends on your needs, but `busybox` provides a dhcp client that's good
> enough for the most common situations.


The package name is udhcpc.

-dsr-

[toc] | [prev] | [next] | [standalone]


#247992

FromOliver Schoede <oliver.schode@online.de>
Date2022-05-08 16:40 +0200
Message-ID<EkQeK-e6MR-17@gated-at.bofh.it>
In reply to#247991
On Sun, 8 May 2022 09:20:25 -0400
Dan Ritter <dsr@randomstring.org> wrote:

> Stefan Monnier wrote: 
> > Rick Thomas [2022-05-07 19:47:57] wrote:
> > > According to the ISC webpage:
> > >> ISC has ended development on the ISC DHCP client as of early
> > >> 2022. This client implementation is no longer maintained and
> > >> should not be used in production any longer.
> > > Can anybody recommend a good replacement?
> > 
> > Depends on your needs, but `busybox` provides a dhcp client that's
> > good enough for the most common situations.
> 
> 
> The package name is udhcpc.
> 
> -dsr-
> 

Right, it's not (yet?) tagged for provides/dhcp-client but at home
would probably do the trick for me, too. Alternatively there's dhcpcd5,
which is tagged and also specifically mentioned on the ISC's eom-page,
though apparently a much broader solution. I'll be using the
legacy one until it's actually removed from Debian and then switch to
whatever is recommended, if anything and provided it's not networkd.

Oliver


https://roy.marples.name/projects/dhcpcd

[toc] | [prev] | [next] | [standalone]


#247994

FromMichael Stone <mstone@debian.org>
Date2022-05-08 18:20 +0200
Message-ID<EkRNv-e7MZ-1@gated-at.bofh.it>
In reply to#247992
On Sun, May 08, 2022 at 04:09:27PM +0200, Oliver Schoede wrote:
>Alternatively there's dhcpcd5,

Be careful with this one unless you have a simple network 
configuration--by default it will attempt to get addresses on all 
interfaces that don't have them, not only ones you set to dhcp in 
/etc/network/interfaces

[toc] | [prev] | [next] | [standalone]


#248035

FromAnssi Saari <as@sci.fi>
Date2022-05-09 11:50 +0200
Message-ID<El8bD-eiu5-9@gated-at.bofh.it>
In reply to#247991
Dan Ritter <dsr@randomstring.org> writes:

> The package name is udhcpc.

Yes, and it's very cool. Well, poorly documented so it was a little hard
to understand. Mostly my problem was the script it wants to run for
various events and how to fix that to do the stuff I need and not do
stuff that messes up my network setup.

But in my case udhcpc seems to be the only DHCP client that will talk to
the LTE module in my router, others just balk and whine.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web