IPv6 without tunnel broker on linux

2 easy steps to make IPv6 work without a tunnel broker.

The technique used to make this work is called 6to4. You use a computer of somebody else to put your IPv6 traffic on the very big IPv6 network.

Okay, lets make things work:

Step 1

type this on your console to activate IPv6:
/sbin/ip tunnel add tun6to4 mode sit ttl 64 remote any local 38.107.179.240
/sbin/ip link set dev tun6to4 up
/sbin/ip -6 addr add 2002:266b:b3f0::/16 dev tun6to4
/sbin/ip -6 route add 2002::/3 via ::192.88.99.1 dev tun6to4 metric 1

Explanation: 38.107.179.240 is your ip adress from your internet provider. It is used to calculate a special part of the 2002:266b:b3f0::/16 IPv6 address as you see above. Your ip address is converted into hex and inserted as the 266b:b3f0 part in this 2002: thingy.
Your IPv6 adress on the very big IPv6 network is now: 2002:266b:b3f0::

Step 2

Test your fresh IPv6 connection.
Type ping6 -nc4 www.ipv6.org in your linux console. It should say something like this:
PING www.ipv6.org(2001:6b0:1:ea:a00:20ff:fe8f:708f) 56 data bytes
64 bytes from 2001:6b0:1:ea:a00:20ff:fe8f:708f: icmp_seq=1 ttl=241 time=90.7 ms
64 bytes from 2001:6b0:1:ea:a00:20ff:fe8f:708f: icmp_seq=2 ttl=241 time=97.4 ms
64 bytes from 2001:6b0:1:ea:a00:20ff:fe8f:708f: icmp_seq=3 ttl=241 time=91.4 ms
64 bytes from 2001:6b0:1:ea:a00:20ff:fe8f:708f: icmp_seq=4 ttl=241 time=89.4 ms
Congrats if you seen no errors, you now have a working IPv6 connection. Do something usefull with it.

If you see errors.... read on, maybe I know how how to fix it.

Errors?

What to do if you get errors in any of the steps above.

Here are some things you can check:

  • You must have the iproute2 tools (check with /sbin/ip -V)
  • You must have IPv6 support in your linux kernel (check if /proc/sys/net/ipv6 exists)
  • If your public ip is not 38.107.179.240 then use the ip address on your eth0 interface of your computer (or the interface connected to the internet), take this ip and use it instead of 38.107.179.240. You do not have to recalculate the special 266b:b3f0 hex part of the 2002:266b:b3f0.
  • If it still does not work, check if you have a router installed. If you do, you must configure your router to forward ip protocol 41 (NOT port 41) to your linux computer. Don't know what I'm talking about? Here is something easyer to do: configure your routers DMZ to point to your linux computer, but be sure to setup a IPv4 firewall because your linux computer is now open for the whole world.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>