NetBSD Problem Report #58419

From www@netbsd.org  Thu Jul 11 15:35:16 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CDB7A1A9238
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 11 Jul 2024 15:35:15 +0000 (UTC)
Message-Id: <20240711153514.8DF6B1A9239@mollari.NetBSD.org>
Date: Thu, 11 Jul 2024 15:35:14 +0000 (UTC)
From: logix@foobar.franken.de
Reply-To: logix@foobar.franken.de
To: gnats-bugs@NetBSD.org
Subject: With multiple ifconfig_xx=dhcp lines only the first is applied
X-Send-Pr-Version: www-1.0

>Number:         58419
>Category:       misc
>Synopsis:       With multiple ifconfig_xx=dhcp lines only the first is applied
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 11 15:40:00 +0000 2024
>Originator:     Harold Gutch
>Release:        10.0
>Organization:
The NoNet-BSD Foundation
>Environment:
NetBSD  10.0 NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
When configuring multiple network interfaces in /etc/rc.conf, dhcpcd only configures the first interface.
>How-To-Repeat:
1)
Have a machine with multiple network interfaces (or configure a VM with multiple network interfaces).

2)
Put this in /etc/rc.conf (replacing wm0 and wm1 with appropriate interface names):
ifconfig_wm0=dhcp
ifconfig_wm1=dhcp
net_interfaces="wm0 wm1"

3)
Reboot

4)
run "dhcpcd --dumplease" and observe that it only has a lease for the first interface in the list above
>Fix:
Don't configure this manually, just do "dhcpcd=yes" in rc.conf.  This might have side effects if you have even more interfaces and you don't want to configure all of them.

NetBSD Home
NetBSD PR Database Search

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