IPv6
Jump to navigation
Jump to search
http://tldp.org/HOWTO/Linux+IPv6-HOWTO/
Make sure you have a valid IPv6 address connected to your NICs.
Because we have no valid ipv6 from KPN yet, we use a 6to4 tunnelling address, which always start with 2002:
In order to calculate the ipv6 from the ipv4 address we need:
ipv6calc --quiet --action conv6to4 188.204.140.215
or
ipv4="1.2.3.4"; printf "2002:%02x%02x:%02x%02x::1" `echo $ipv4 | tr "." " "`
This gives:
2002:bccc:8cd7::
so in /etc/network/interfaces add something like
auto tun6to4 iface tun6to4 inet6 v4tunnel address 2002:bccc:8cd7::1 netmask 16 gateway ::188.204.140.193 endpoint any local 188.204.140.215
underneath your ipv4 network interfaces. NOTE: Notice the '1' at the end! (see also 3.2.4.2 in http://tldp.org/HOWTO/Linux+IPv6-HOWTO/x513.html)
which we can test with:
ip -6 tunnel show tun6to4 ip -6 route show ping6 ipv6.google.com