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

NetBSD

Also see the NetBSD IPv6 FAQ.

System requirements:

  • NetBSD 1.4.x w/ KAME patches
  • NetBSD 1.5.x/2.x/3.x or 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.

For NetBSD 1.5.x and up, which support dynamic creating of interfaces, you will first have to create the tunnel interface, using:
ifconfig gif0 create

Next step is configuring the tunnel:
# ifconfig gif0 tunnel [Your IPv4 Endpoint] [PoP IPv4 Endpoint]
# ifconfig gif0 inet6 [Your IPv6 address] [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

To configure the tunnel at boot time create the file /etc/ifconfig.gif0 at put the following content into it:

  create                                                                  
  tunnel [Your IPv4 Endpoint] [PoP IPv4 Endpoint]                         
  inet6 [Your IPv6 address] [PoP IPv6 Endpoint] prefixlen 128             
  !route add -inet6 default ::1                                           
  !route change -inet6 default -ifp $int                                  
If net.inet6.ip6.forwarding is not set to 1 by default (it isn't in a default NetBSD install, you can add the following line to /etc/sysctl.conf:
  net.inet6.ip6.forwarding=1                                              
Static Sunset Edition of SixXS
©2001-2017 SixXS - IPv6 Deployment & Tunnel Broker