Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Aug 2018 11:07:51 +0200
From:      "Herbert J. Skuhra" <herbert@gojira.at>
To:        freebsd-net@freebsd.org
Subject:   Re: DHCP vs. SYNCDHCP in rc.conf
Message-ID:  <87tvo65yu0.wl-herbert@gojira.at>
In-Reply-To: <2E43A157-FFA5-47E8-92DF-21986AF89487@punkt.de>
References:  <2E43A157-FFA5-47E8-92DF-21986AF89487@punkt.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 07 Aug 2018 10:01:18 +0200, "Patrick M. Hausen" wrote:
> 
> Hi all,
> 
> from reading the docs I think that SYNCDHCP is supposed
> to wait for dhclient to finish and that there should not be
> another difference.
> 
> But then why does
> 
> 	ifconfig_em0_name="inet0"
> 	ifconfig_inet0="SYNCDHCP"
> 
> in rc.conf lead to the desired result while
> 
> 	ifconfig_em0_name="inet0"
> 	ifconfig_inet0="DHCP"
> 
> doesn't?
> 
> 		ifconfig_em0="DHCP"
> 
> works as it should but renaming and configuring via DHCP
> works only if combined with SYNC.
> 
> Reading /etc/rc.subr did not help ;-) I simply don't get it.

Hmm, works for me! Tested on a Raspberry Pi 2 and 3 (both CURRENT) and a
VM (11.2-RELEASE-p1 and CURRENT). Have you tried to boot with "rc_debug=YES"?

--
Herbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87tvo65yu0.wl-herbert>