NetBSD-Bugs archive

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

misc/58419: With multiple ifconfig_xx=dhcp lines only the first is applied



>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@localhost:/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.



Home | Main Index | Thread Index | Old Index