Endlich hab ich mal Zeit gefunden, mir die 6to4-Konfiguration in Debian anzusehen. Für Gentoo hatte ich schon mal
was geschrieben.
Eine Beispielkonfiguration:
# cat /etc/network/interfaces
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address aa.bb.cc.dd
netmask 255.255.255.255
auto tun6to4
iface tun6to4 inet6 v4tunnel
address 2002:wwxx:yyzz::1
netmask 48
local aa.bb.cc.dd
endpoint any
gateway ::192.88.99.1
Man sollte für das Tunneldevice sowas wie
tun6to4 statt
sit0 verwenden, da
ifdown das Standard sit0 device nicht löschen kann, was beim restart das Netzwerk kaputt machen kann.
Um seine 6to4-Adresse zu berechnen, kann man den kurzen Shellbefehl nutzen:
printf "2002:%02x%02x:%02x%02x::1" $(echo $MYIP | tr . ' ')
wobei $MYIP dann die lokale IP von z.B. eth0 darstellen sollte.
Die IP 192.88.99.1 ist eine Anycastadresse für das nächste 6to4-Gateway.
Quellen:
http://www.melb.apana.org.au/wiki/IPv6ConfigurationForDebian
http://people.debian.org/~csmall/ipv6/setup624.html
http://www.feyrer.de/IPv6/ueberreuter-6to4.html