Friday, November 30, 2012

Getting access to IPv6 for everyone using 6to4

Using 6to4 seems deprecated, but it still works as tunnel servers are still available. 

If you get your Internetz from a 19-century ISP who hasn't implemented IPv6 yet (read: almost all). You have a couple of choices to get access to IPv6.

  • Using a tunnel broker (recommended)
    • is a good one
  • Using 6to4 tunneling
To configure 6to4 tunneling, first see if you can reach a tunnel server by doing a ping or traceroute to This IP exists on multiple networks, so you should be able to reach one.
Now to setup the tunnel, you first need to calculate your 6to4 IPv6 address:
printf "2002:%02x%02x:%02x%02x::1\n" `echo YOURv4ADDRESShere | tr . ' '`
Now build the tunnel:
ip tunnel add tun6to4 mode sit remote any local
ip link set dev tun6to4 mtu 1472 up
ip -6 add add YOURv6ADDRESShere/16 dev tun6to4
ip -6 route add ::/96 dev tun6to4 metric 1 
ip -6 route add 2000::/3 via :: dev tun6to4 metric 1
Now test this:

To break down the tunnel:
/sbin/ip -6 route flush dev tun6to4
/sbin/ip link set dev tun6to4 down
/sbin/ip tunnel del tun6to4

Info taken from

If you like, you can setup reverse DNS and register it at (visit this page using your new 6to4 address to make this work).


Post a Comment

<< Home