timing issue with ifconfig em(4) at rc.d start?
Andreas Ott
andreas at naund.org
Wed Aug 22 21:39:10 UTC 2018
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
More information about the freebsd-current
mailing list