NetBSD Problem Report #57958

From  Fri Feb 23 22:55:35 2024
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id B25571A9239
	for <>; Fri, 23 Feb 2024 22:55:35 +0000 (UTC)
Message-Id: <>
Date: Fri, 23 Feb 2024 22:55:34 +0000 (UTC)
Subject: dhcpcd sometimes configures the same two DHCPv6 addresses on different interfaces
X-Send-Pr-Version: www-1.0

>Number:         57958
>Category:       bin
>Synopsis:       dhcpcd sometimes configures the same two DHCPv6 addresses on different interfaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 23 23:00:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        netbsd-10
The You Say Network, I Say Notwork Foundatoin
NetBSD nanocons.local 10.0_RC3 NetBSD 10.0_RC3 (GENERIC64) #15: Wed Jan 17 05:31:14 UTC 2024  root@manticore.local:/usr/obj/10/evbarm64/sys/arch/evbarm/compile/GENERIC64 evbarm
I have a LAN configured on a subnet, say 2001:db8::/64, with SLAAC and DHCPv6.  I have a NetBSD device with two interfaces, ure0 and urtwn0, configured with dhcpcd, using the only two changes from 10.0_RC3 dhcpcd.conf:

-option rapid_commit
+#option rapid_commit
+nooption dhcp6_reconfigure_accept

The DHCPv6 server hands out two different addresses, say 2001:db8::123 and 2001:db8::456, for the two different interfaces.  I'm not sure how it distinguishes which one should get which interface.

Somehow, dhcpcd sometimes configures _both_ interfaces with _both_ addresses:

# ifconfig -a
        inet6 2001:db8::123/128 flags 0
        inet6 2001:db8::456/128 flags 0
urtwn0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 2001:db8::456/128 flags 0
        inet6 2001:db8::123/128 flags 0
not sure
Yes, please!

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.