accept_rtadv
Lutz Donnerhacke
lutz at donnerhacke.de
Sat Feb 27 22:07:49 UTC 2021
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"
More information about the freebsd-net
mailing list