Re: timing issue with ifconfig em(4) at rc.d start?

From: Andreas Ott <andreas_at_naund.org>
Date: Wed, 22 Aug 2018 14:39:06 -0700
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
Received on Wed Aug 22 2018 - 19:39:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC