Date: Sat, 27 Feb 2021 23:07:40 +0100 From: Lutz Donnerhacke <lutz@donnerhacke.de> To: Doug Hardie <bc979@lafn.org> Cc: net@FreeBSD.org Subject: Re: accept_rtadv Message-ID: <20210227220740.GA28592@belenus.iks-jena.de> In-Reply-To: <BC947075-4292-4C87-902B-DC98B60A548E@lafn.org> References: <BC947075-4292-4C87-902B-DC98B60A548E@lafn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 27, 2021 at 12:34:56PM -0800, Doug Hardie wrote:
> Ahh. The handbook is needing a note about that. There should be something similar to what was done for IPv4 where it shows adding additional addresses using:
>
> Ifconfig_bge0_alias0 ...
> Ifconfig_bge0_alias1 ...
>
> That would be very helpful. Thanks for the explinations.
That's a bad idea. You can't comment out some intermediate line.
ifconfig_bge0_alias0="inet xxx"
# ifconfig_bge0_alias1="inet yyy"
ifconfig_bge0_alias2="inet zzz"
will result in applying "xxx" only.
but this is even worse:
ifconfig_bge0_aliases=" \
inet xxx \
# inet yyy \
inet zzz \
"
It results in an syntax error.
So I do use:
ifconfig_bge0_aliases="${ifconfig_bge0_aliases} inet xxx"
# ifconfig_bge0_aliases="${ifconfig_bge0_aliases} inet yyy"
ifconfig_bge0_aliases="${ifconfig_bge0_aliases} inet zzz"
For _ipv6 it's different, because you need at least one _ipv6.
ifconfig_bge0_ipv6="inet6 xxx"
ifconfig_bge0_aliases="inet6 yyy"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210227220740.GA28592>
