Skip site navigation (1)Skip section navigation (2)
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=3D237649

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)
=3D=3D=3D=3D
dhcptest1 {
    path =3D "/usr/jail/dhcptest1";
    host.hostname =3D "dhcptest1.net.isc.upenn.edu";
    vnet;
    vnet.interface =3D dhcp1;
    allow.raw_sockets;
    mount.fdescfs;
    devfs_ruleset =3D 40;
}
=3D=3D=3D=3D

/etc/devfs.rules (host)
=3D=3D=3D=3D
[devfsrules_jail_bpf=3D40]
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
=3D=3D=3D=3D

/etc/rc.conf (jail)
=3D=3D=3D=3D
firewall_enable=3D"YES"
firewall_type=3D"open"
ifconfig_dhcp1=3D"DHCP"
=3D=3D=3D=3D

The relevant lines from /etc/network.subr toward the end of ifconfig_up() a=
re:

=3D=3D=3D=3D
        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=3D0
        fi
=3D=3D=3D=3D

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=3DYE=
S.

I cannot figure out how this ever worked as documented in the rc.conf manpa=
ge,
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 DHC=
P,
but I have not yet found what other configuration is required, nor what mig=
ht
have changed to trigger a latent bug.

--=20
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>