FreeBSD Configure IPv6 Networking / Static IP Address

‮w//:sptth‬ww.lautturi.com
FreeBSD Configure IPv6 Networking / Static IP Address

To configure IPv6 networking and a static IPv6 address on a FreeBSD system, you will need to do the following:

  1. Enable IPv6 support on your FreeBSD system. You can do this by adding the following line to the /etc/rc.conf file:
ipv6_enable="YES"
  1. Configure the IPv6 address and default router for your system. You can do this by adding the following lines to the /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.

  1. Restart the network service to apply the changes:
# service netif restart
  1. Test the configuration by pinging an IPv6 address using the ping6 command:
# ping6 ipv6.google.com
Created Time:2017-10-28 20:40:33  Author:lautturi