Dear Maintainer,
I just upgraded to Debian Trixie. The release notes say that
isc-dhcp-client is deprecated and should be replaced with dhcpcd-base.
I tried, but it appears to be incompatible with my network
configuration, which uses stateful DHCPv6. This is on a server which
uses the venerable ifupdown with this configuration in
/etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp2s0
iface enp2s0 inet dhcp
iface enp2s0 inet6 dhcp
Trying to raise enp2s0 on boot fails with this log:
Aug 10 18:21:39 zugspitze systemd[1]: Started ifup@enp2s0.service - ifup for enp2s0.
Aug 10 18:21:39 zugspitze ifup[1125]: dhcpcd-10.1.0 starting
Aug 10 18:21:39 zugspitze dhcpcd[1125]: dhcpcd-10.1.0 starting
Aug 10 18:21:40 zugspitze ifup[1131]: enp2s0: waiting for carrier
Aug 10 18:21:40 zugspitze dhcpcd[1131]: enp2s0: waiting for carrier
Aug 10 18:21:43 zugspitze ifup[1131]: enp2s0: carrier acquired
Aug 10 18:21:43 zugspitze dhcpcd[1131]: enp2s0: carrier acquired
...
Aug 10 18:21:44 zugspitze ifup[1131]: enp2s0: soliciting a DHCP lease
Aug 10 18:21:44 zugspitze dhcpcd[1131]: enp2s0: soliciting a DHCP lease
Aug 10 18:21:44 zugspitze ifup[1131]: enp2s0: offered <redacted IPv4> from <redacted IPv4>
...
Aug 10 18:21:45 zugspitze ifup[1131]: enp2s0: soliciting an IPv6 router
Aug 10 18:21:45 zugspitze dhcpcd[1131]: enp2s0: soliciting an IPv6 router
Aug 10 18:21:45 zugspitze ifup[1131]: enp2s0: Router Advertisement from fe80::<redacted>
...
Aug 10 18:21:45 zugspitze ifup[1131]: enp2s0: adding route to 2003:<redacted> via fe80::redacted>
...
Aug 10 18:21:45 zugspitze ifup[1131]: enp2s0: soliciting a DHCPv6 lease
Aug 10 18:21:45 zugspitze dhcpcd[1131]: enp2s0: soliciting a DHCPv6 lease
Aug 10 18:21:47 zugspitze ifup[1131]: enp2s0: ADV 2003:<redacted> from fe80::<redacted> (0)
...
Aug 10 18:21:48 zugspitze ifup[1131]: enp2s0: REPLY6 received from fe80::<redacted>
Aug 10 18:21:48 zugspitze ifup[1131]: enp2s0: adding address 2003:<redacted>
Aug 10 18:21:48 zugspitze ifup[1131]: enp2s0: renew in 21600, rebind in 34560, expire in 43200 seconds
Aug 10 18:21:48 zugspitze ifup[1131]: enp2s0: adding default route via fe80::<redacted>
...
Aug 10 18:21:49 zugspitze ifup[1326]: No DHCPv6 client software found!
Aug 10 18:21:49 zugspitze ifup[1114]: ifup: failed to bring up enp2s0
Aug 10 18:21:49 zugspitze systemd[1]: ifup@enp2s0.service: Main process exited, code=exited, status=1/FAILURE
Aug 10 18:21:49 zugspitze dhcpcd[1131]: received SIGTERM, stopping
Aug 10 18:21:49 zugspitze dhcpcd[1131]: enp2s0: removing interface
Aug 10 18:21:49 zugspitze dhcpcd[1131]: script_status: /usr/lib/dhcpcd/dhcpcd-run-hooks: Terminated
Aug 10 18:21:49 zugspitze dhcpcd[1131]: dhcpcd exited
Aug 10 18:21:49 zugspitze systemd[1]: ifup@enp2s0.service: Failed with result 'exit-code'.
Some Internet research suggests that this is problem with ifupdown rather than with dhcpcd (see https://unix.stackexchange.com/a/789391), so I thought it is best to report this formally to get it fixed at some point.
For now, I will revert to isc-dhcp-client, but as that one is going to go away on the long run, it would be good to have ifupdown work with dhcpcd instead for DHCPv6.
* What led up to the situation?
I replaced isc-dhcp-client with dhcpcd-base as recommended by the release notes.
* What exactly did you do (or not do) that was effective (or
ineffective)?
$ apt install dhcpcd-base && apt-purge isc-dhcp-client
* What was the outcome of this action?
ifup exits with an error message.
* What outcome did you expect instead?
It should not exit with an error message and instead use dhcpcd's DHCPv6 facilities.
Sincerly,
Marvin Gülker
--- /etc/network/interfaces.d/*:
cat: '/etc/network/interfaces.d/*': No such file or directory
--- up and down scripts installed:
/etc/network/if-down.d:
total 4
-rwxr-xr-x 1 root root 759 Dec 9 2022 resolved
/etc/network/if-post-down.d:
total 0
/etc/network/if-pre-up.d:
total 0
/etc/network/if-up.d:
total 8
-rwxr-xr-x 1 root root 4665 Aug 20 2024 resolved