From owner-freebsd-net@freebsd.org Tue Aug 7 09:07:54 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6FB101053EEC for ; Tue, 7 Aug 2018 09:07:54 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [IPv6:2a01:4f8:191:217b::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.bsd4all.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 140E784D52 for ; Tue, 7 Aug 2018 09:07:53 +0000 (UTC) (envelope-from herbert@gojira.at) Date: Tue, 07 Aug 2018 11:07:51 +0200 Message-ID: <87tvo65yu0.wl-herbert@gojira.at> From: "Herbert J. Skuhra" To: freebsd-net@freebsd.org Subject: Re: DHCP vs. SYNCDHCP in rc.conf In-Reply-To: <2E43A157-FFA5-47E8-92DF-21986AF89487@punkt.de> References: <2E43A157-FFA5-47E8-92DF-21986AF89487@punkt.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/27.0 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2018 09:07:54 -0000 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