Date: Tue, 23 Jun 2020 16:23:40 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 237649] Does not work receiving an IP address via DHCP after stable/12 (r346874-r347140) Message-ID: <bug-237649-7501-bTfwgxjZkI@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-237649-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-237649-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237649 John W. O'Brien <john@saltant.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |john@saltant.com --- Comment #10 from John W. O'Brien <john@saltant.com> --- I believe I can reproduce this on 12.1-RELEASE in a VNET jail. >From /etc/jail.conf (host) ==== dhcptest1 { path = "/usr/jail/dhcptest1"; host.hostname = "dhcptest1.net.isc.upenn.edu"; vnet; vnet.interface = dhcp1; allow.raw_sockets; mount.fdescfs; devfs_ruleset = 40; } ==== /etc/devfs.rules (host) ==== [devfsrules_jail_bpf=40] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login add path zfs unhide add path 'bpf*' unhide own bpf* root:network perm bpf* 0660 ==== /etc/rc.conf (jail) ==== firewall_enable="YES" firewall_type="open" ifconfig_dhcp1="DHCP" ==== The relevant lines from /etc/network.subr toward the end of ifconfig_up() are: ==== if dhcpif $1; then if [ $_cfg -ne 0 ] ; then ${IFCONFIG_CMD} $1 up fi if syncdhcpif $1; then /etc/rc.d/dhclient start $1 fi _cfg=0 fi ==== This is the only place anywhere in /etc containing "dhclient start", and it only runs if the iface is set to "SYNCDHCP" or if synchronous_dhclient=YES. I cannot figure out how this ever worked as documented in the rc.conf manpage, but I did find a clue in base r157706: "Allow the administrator to specify if dhclient should be started when /etc/rc.d/netif configures the interface or only by devd." That suggests to me that devd is a requirement for async DHCP, but I have not yet found what other configuration is required, nor what might have changed to trigger a latent bug. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237649-7501-bTfwgxjZkI>
