SixXS::Sunset 2017-06-06

FAQ : Connectivity (Tunnels and Subnets) : How do I configure my machine to setup the IPv6 in IPv4 tunnel to the SixXS PoP?

Other FAQ sections

How do I configure my machine to setup the IPv6 in IPv4 tunnel to the SixXS PoP?

The easiest way is by using AICCU, though if one wants to configure it manually or because AICCU doesn't support your platform, then you can pick your Operating system from the following list. AICCU can configure static, heartbeat and AYIYA tunnels.

Warning The manual methods described below only apply to static proto-41 tunnels. AYIYA and heartbeat tunnels require AICCU.

Select your Operating System

FreeBSD

System requirements:

  • FreeBSD 3.x w/ KAME patches
  • FreeBSD 4.x and up

First make sure you have INET6 enabled in your kernel. Look if your ifconfig reports link-local addresses for your interfaces, if it does you have IPv6 in your kernel.

The newer kernels (4.2+) have better support for IPv6, thus use at least those though suggested is to use a current FreeBSD version. There is also a very detailed FreeBSD IPv6 Internals manual for one to browse through.

Next step is configuring the tunnel:
# ifconfig gif0 create
# ifconfig gif0 tunnel [Your IPv4 Endpoint] [PoP IPv4 Endpoint]
# ifconfig gif0 inet6 [Your IPv6 Endpoint] [PoP IPv6 Endpoint] prefixlen 128

The tunnel should be up now.

Route your IPv6 traffic via the SixXS PoP:
# route add -inet6 default [PoP IPv6 Endpoint]

If you plan to use your machine as a router:
# sysctl -w net.inet6.ip6.forwarding=1

/etc/rc.conf way upto 8.x:

ipv6_enable="YES"
ipv6_defaultrouter="[PoP IPv6 Endpoint]"
gif_interfaces="gif0"
gifconfig_gif0="[Your IPv4 Endpoint] [PoP IPv4 Endpoint]"
ipv6_ifconfig_gif0="[Your IPv6 Endpoint] [PoP IPv6 Endpoint] prefixlen 128"

/etc/rc.conf 9.x:

ipv6_gateway_enable="YES" ifconfig_[LAN Interface]_ipv6="inet6 [LAN IPv6 Address] prefixlen 64" gif_interfaces="gif0" gifconfig_gif0="[Your IPv4 Endpoint] [PoP IPv4 Endpoint]" ifconfig_gif0_ipv6="inet6 [Your IPv6 Endpoint] [PoP IPv6 Endpoint] prefixlen 128" ipv6_defaultrouter="[PoP IPv6 Endpoint] rtadvd_enable="YES" rtadvd_interfaces="[LAN Interface]"

/etc/rc.conf 10.x and up:

ipv6_gateway_enable="YES" ipv6_interfaces="auto" ipv6_activate_all_interfaces="YES" ipv6_cpe_wanif="gif0" ifconfig_[LAN Interface]_ipv6="inet6 [LAN IPv6 Address] prefixlen 64" cloned_interfaces="gif0" ifconfig_gif0="tunnel [Your IPv4 Endpoint] [PoP IPv4 Endpoint]" ifconfig_gif0_ipv6="inet6 [Your IPv6 Endpoint] [PoP IPv6 Endpoint] prefixlen 128" ipv6_defaultrouter="[PoP IPv6 Endpoint]" rtadvd_enable="YES" rtadvd_interfaces="[LAN Interface]"
Static Sunset Edition of SixXS
©2001-2017 SixXS - IPv6 Deployment & Tunnel Broker