I am currently running FreeBSD 12.0-RELEASE-p2, and I can't figure out how to create both IPV4 and IPV6 aliases for a loopback (lo1) interface using rc.conf(5) on boot. Here is a snippet of my /etc/rc.conf:
Unfortunately the last two lines don't seem to function properly (no ipv6 aliases are added). Although I can find references of creating ipv6 aliases within the rc.conf(5) manpage under the ifconfig_<interface>_ipv6 section, there are no examples of how to create them alongside with ipv4 aliases.
I would like to run the equivalent of the following on boot, using rc.conf():
Code:
cloned_interfaces="lo1"
ifconfig_lo1="inet 10.0.0.0 netmask 255.255.255.0"
ifconfig_lo1_ipv6="inet6 fdxx:xxxx:xxxx::/48"
ifconfig_lo1_alias0="inet 10.0.0.1 netmask 255.255.255.255"
ifconfig_lo1_alias1="inet 10.0.0.2 netmask 255.255.255.255"
ifconfig_lo1_alias2="inet6 fdxx:xxxx:xxxx::1 prefixlen 64"
ifconfig_lo1_alias3="inet6 fdxx:xxxx:xxxx::2 prefixlen 64"
I would like to run the equivalent of the following on boot, using rc.conf():
Code:
ifconfig lo1 inet 10.0.0.1 netmask 255.255.255.255 alias
ifconfig lo1 inet 10.0.0.2 netmask 255.255.255.255 alias
ifconfig lo1 inet6 fdxx:xxxx:xxxx::1/64 alias
ifconfig lo1 inet6 fdxx:xxxx:xxxx::2/64 alias