Linux IPv6: 6to4 standard tunnel

# this only works if the machine is directly on the internet
# not behind NAT!
# assuming 96.30.111.165 is the public IP in a connected network interface
# and 2002:601E:6FA5::1/64 as your IPv6 address, derived from IPv4

ip tunnel add tun6to4 mode sit ttl 128 remote any local 96.30.111.165
ip -6 addr add 2002:601E:6FA5::1/64 dev tun6to4
ip link set dev tun6to4 up
ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4 metric 1

#test
traceroute -6 google.com

(more…)