From owner-freebsd-current@freebsd.org Wed Aug 22 21:39:10 2018 Return-Path: Delivered-To: freebsd-current@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 07B0C1096A3E for ; Wed, 22 Aug 2018 21:39:10 +0000 (UTC) (envelope-from andreas@naund.org) Received: from naund.org (172-11-194-172.lightspeed.sntcca.sbcglobal.net [172.11.194.172]) by mx1.freebsd.org (Postfix) with ESMTP id 4F64F8E089 for ; Wed, 22 Aug 2018 21:39:08 +0000 (UTC) (envelope-from andreas@naund.org) Received: (from andreas@localhost) by naund.org (8.11.6/8.11.6-20030329ao) id w7MLd6w11492; Wed, 22 Aug 2018 14:39:06 -0700 Date: Wed, 22 Aug 2018 14:39:06 -0700 From: Andreas Ott To: Freddie Cash Cc: freebsd-current@freebsd.org Subject: Re: timing issue with ifconfig em(4) at rc.d start? Message-ID: <20180822143906.U998@naund.org> References: <20180822132135.A9818@naund.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from fjwcash@gmail.com on Wed, Aug 22, 2018 at 01:30:37PM -0700 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2018 21:39:10 -0000 Hi, On Wed, Aug 22, 2018 at 01:30:37PM -0700, Freddie Cash wrote: > There's nothing wrong with the timing. Your rc.conf is incorrect. > > The second ifconfig_em1 line overrides the former. These are variable > declarations, not commands. The last setting for a variable is the only > one that takes place. Thanks for pointing this out. Sorry for the noise, I was able to track this down to a scripting error that placed the lines into my /etc/rc.conf . > Either look through /etc/defaults/rc.conf for the ipv6-related entries, or > switch to using an alias entry for ipv6: > > ifconfig_em1="inet 100.79.136.239 netmask 255.255.255.0 up" > ifconfig_em1_alias0="inet6 2600:c02:b020:136::239 prefixlen 64" I think the inet6 syntax from the sample in /etc/defaults/rc.conf and after reading more in rc.conf(5) would be ifconfig_em1="inet 100.79.136.239 netmask 255.255.255.0 up" ifconfig_em1_ipv6="inet6 2600:c02:b020:136::239 prefixlen 64" and I can confirm that after making the change this now works. -andreas