I'm on FreeBSD 10.1 and in the process of setting up a server. After some hassle I managed to get IPv6 running.
I'm now setting up jails with ezjail and I learned how to set up a working flavor and a jail with IPv4 internet access.
However, I can't get IPv6 to work in the jail and I have no idea why.
My lo0 interface in the jail doesn't get a IPv6 address.
What am I missing?
/etc/rc.conf
[…]
gateway_enable="YES"
ipv6_gateway_enable="YES"
[…]
/usr/local/etc/ezjail/test
[…]
export jail_test_ip="lo0|10.0.0.2,lo0|fe80::2"
[…]
ifconfig
[…]
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
inet 10.0.0.2 netmask 0xffffffff
inet6 fe80::2%lo0 prefixlen 128 scopeid 0x2
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
[…]
Jail ifconfig
[…]
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 10.0.0.2 netmask 0xffffffff
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
[…]