IPv6: teredo
apt install miredo
ifconfig teredo
On Debian and Ubuntu, getting IPv6 connectivity is as easy as running this command in terminal:
sudo apt-get install miredo
You should instantaneously be connected to the internet via IPv6 (provided you have a working IPv4 setup).
If you want to customize your IPv6 connectivity, you can edit the miredo configuration file /etc/miredo.conf as described in the miredo.conf man page. By default, the Ubuntu/Debian package is configured to use the server teredo-debian.remlab.net. Prefer IPv6 (incl. Teredo/Miredo) over IPv4
Add the following lines to your /etc/gai.conf (you can replace the whole file by this):
- Loopback Address (RFC 4291):
label ::1/128 0
- The full IPv6 address space:
label ::/0 1
- 6to4 Addresses (RFC 3056):
label 2002::/16 2
- Deprecated IPv4 mapped addresses (RFC 4291):
label ::/96 3
- IPv4 mapped addresses (RFC 5952):
label ::ffff:0:0/96 4
- Reserved by IETF (RFC 3879):
label fec0::/10 5
- Unique Local Unicast (RFC 4193):
label fc00::/7 6
- Teredo addresses (RFC 4380):
- label 2001:0::/32 7
precedence ::1/128 50 precedence ::/0 40 precedence 2002::/16 30 precedence ::/96 20 precedence ::ffff:0:0/96 10