To configure IPv6 networking and a static IPv6 address on a FreeBSD system, you will need to do the following:
/etc/rc.conf
file:ipv6_enable="YES"
/etc/rc.conf
file:ipv6_ifconfig_em0="YOUR_IPV6_ADDRESS" ipv6_defaultrouter="YOUR_IPV6_DEFAULT_ROUTER"
Replace em0
with the name of your network interface, and replace YOUR_IPV6_ADDRESS
and YOUR_IPV6_DEFAULT_ROUTER
with the IPv6 address and default router for your system, respectively.
# service netif restart
ping6
command:# ping6 ipv6.google.com