Category: network

Linux IPv6: 6to4 standard tunnel

# this only works if the machine is directly on the internet
# not behind NAT!
# assuming 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
ip -6 addr add 2002:601E:6FA5::1/64 dev tun6to4
ip link set dev tun6to4 up
ip -6 route add 2000::/3 via :: dev tun6to4 metric 1

traceroute -6