[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Finishing deprecation of isc-dhcp-client in ifupdown*



On Tue, 4 Nov 2025, Daniel Gröber wrote:

>I've added more hacks to make this work. See
>https://salsa.debian.org/debian/ifupdown/-/merge_requests/28/diffs?commit_id=acc9455eef698b4d51f08c3dfa87e31bdcc1147e

I did the following:

- check out commit acc9455eef698b4d51f08c3dfa87e31bdcc1147e
- apply the following patch:

diff --git a/debian/changelog b/debian/changelog
index 48b5ce8..dc5bd67 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-ifupdown (0.8.45) unstable; urgency=medium
+ifupdown (0.8.45~~exp3) unstable; urgency=medium
 
   [ Kai Tetzlaff ]
   * Stop inet (IPv4) stanza from erroniously starting dhcpcd on IPv6
diff --git a/inet.defn b/inet.defn
index 2e277d3..7259085 100644
--- a/inet.defn
+++ b/inet.defn
@@ -121,7 +121,7 @@ method dhcp
     ip link set dev %iface% down \
 		if (iface_is_link())
 
-    dhcpcd.sh --restore-syscltls \
+    dhcpcd.sh --restore-sysctls \
         if (execable("dhcpcd") && !execable("dhclient"))
 
 method bootp

- build, install, reboot
- up the interface again

This did not change anything, the IPv6 address was still wrong,
and I still got two link-local addresses, one of which is wrong.

Then I changed /etc/network/interfaces.d/foo to add…

	iface foo inet6 auto

(as I use “sudo ifup wlan0=foo” because I switch between different
WLANs all the time), as you suggested I’ve got to migrate to, and
THE RESULT IS ACTUALLY EVEN WORSE:

    inet 192.168.0.208/24 brd 192.168.0.255 scope global dynamic noprefixroute wlan0
       valid_lft 1209574sec preferred_lft 1058374sec
    inet6 2001:470:1f15:10c:7922:456f:9923:7a9e/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 2591970sec preferred_lft 604770sec
    inet6 fe80::d658:47f3:7d84:b5e/64 scope link
       valid_lft forever preferred_lft forever

Now I got the same broken global address and ONLY THE BROKEN link-local
address; the correct one (EUI64-based) has gone away.

bye,
//Thorsten
-- 
Thorsten Glaser
Linux / Unix Developer
Tel.: +49 160 91168501
E-Mail: tglaser@b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / https://www.b1-systems.de/
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt, HRB 3537


Reply to: