SixXS Static 6in4 IPv6 Tunnel on Ubuntu / Debian

Define the tunnel in /etc/network/interfaces

You can simply put the following setup in your interfaces configuration file and this will allow you to set up your tunnel automatically at startup or manually using ifup sixxs.

# Please refer to <> for further information
auto sixxs
iface sixxs inet6 v4tunnel
  address [Your IPv6 Endpoint]
  netmask [Prefix Length]
  endpoint [PoP IPv4 Endpoint]
  ttl 64
  # If you configured the *Tunnel MTU* to 1480 on, then use this value below
  # <>
  up ip link set mtu 1280 dev sixxs
  up ip route add default via [PoP IPv6 Endpoint] dev sixxs
  #pre-up modprobe ipv6
  #pre-up ip6tables-restore < /etc/network/ip6tables

You may use the following script to automate the step to add the entry to /etc/network/interfaces:

Nice setup using the if-up script /etc/network/if-up.d/startipv6tunnel

Alternatively, you can set up the static IPv6 tunnel to SixXS with an if-up script that makes use of the ip tool from the iproute2 suite. I found it on (German) :

The installation process can be automate. Just run the following lines in your terminal and you will be ready to go: