Posts with the tag IPv6

Using the ipaddress module that comes with Python3.3+

from ipaddress import IPv4Network, IPv6Network

a = IPv4Network('')
b = IPv4Network('')
c = IPv4Network('')

x = IPv6Network('2000::/64')
y = IPv6Network<span...

Read on

radvd – The Linux IPv6 Router Advertisement Daemon

Installation on Ubuntu / Debian:

sudo apt-get update && sudo apt-get install radvd

A typical radvd configuration file /etc/radvd.conf to advertise the prefix 2001:db8:2530:fa13::/64 for autoconfiguration on the network connected to the interface eth0 and to advertise the machine running radvd as a router for the local network (based...

Read on

IPv6 Tools on the Command Line


neighbour discovery:

# trigger the discovery
ping6 -c2 -I eth0 ff02::1
# print the results:
ip -6 neigh

Or with the network interface specified in a shell variable and the commands put in a single command line:

ping6 -c2 -I $IFACE ff02::1 && echo -e...

Read on

VPN with tinc and IPv6 (Using OpenWrt Routers)

The vpn software tinc has full support for IPv6 according to its projects' web site.

Here are the features in short:

  • Encryption, authentication and compression
  • Automatic full mesh routing
  • Easily expand your VPN
  • Ability to bridge ethernet segments (check this)
  • Runs on many operating systems and supports IPv6

Installing tinc

On OpenWrt Routers:

opkg update

Read on

IPv6 Adresses

Defined in RFC 5156

  • ::1/128 is the loopback address
  • ::/128 is the unspecified address
  • ::FFFF:0:0/96 are the IPv4-mapped addresses (indicating devices that are not IPv6-capable)
  • ::<ipv4-address>/96 are the IPv4-compatible addresses, deprecated!
  • fe80::/10 are the link-local unicast addresses
  • fc00::/7 are the unique-local addresses
  • 2001:db8::/32 are the documentation addresses. They are used for documentation purposes such as user manuals,...

Read on

IPv6 Privacy Extensions

The privacy extensions as defined in RFC4941 make your device change its IP every now and then.

Privacy addresses are not enabled by default. Their generation is activated via the sysctl directive use_tempaddr that can be set to one of the following values:

  • 0 don't use privacy extensions.
  • 1 generate privacy addresses
  • 2...

Read on

Instantaneous IPv6 Connectivity using Teredo on Debian / Ubuntu

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...

Read on

Mobile IPv6

Mobile IP / Mobile IPv6 / mip6d seems to be quite dead at the moment:

Read on

SixXS Static 6in4 IPv6 Tunnel on Ubuntu / Debian

Define the tunnel in /etc/network/interfaces

You can simply put the following setup in your interfaces configuration file and this will allow you to set up your tunnel automatically at startup or manually using ifup sixxs.

# Please refer to <> for further information
auto sixxs
iface <span...

Read on

IPv6 6in4 Tunnel via Hurricane Electric ( Tunnel Setup on Ubuntu 11.04

Using the CLI tool ip

I wrote the following script to set up the IPv6 6in4 tunnel on Linux using the ip command. You have to adjust the constants to the values given on the site on the tunnel that you created. Just execute it and you should be...

Read on

IPv6 6in4 Tunnel via Hurricane Electric ( Automatic IP Update on Mac OS X

Hurricane Electric provides free IPv6 tunnels via the 6in4 protocol on the website After signing up, one can create up to 5 tunnels. When settings up a standard tunnel, one has to provide one's endpoint IPv4 address which may change from time to time (moving around or 24-hour...

Read on


This blog post has grown to large. Please refer to the more detailed posts on IPv6 tagged with ipv6:

DNS entries for IPv6 ready web sites

  • A record: normal domain to ip address resolution
  • MX record: email server lookup, must resolve to a server address that is resolved to an IP...

Read on