22 February, 2010

IPv6 Configuration

The following procedure seems to work for me: First convert the existing IPv4 address to IPv6 address:
kpe@somewhere# ipv6calc --ipv4_to_6to4addr 10.1.208.11
2002:a01:d00b::
Then change static configuration in /etc/network/interfaces like this:
auto eth0
iface eth0 inet6 static
address 2002:a01:d00b::
gateway 2002:a01:d001::
network 2002:a01:d000::
netmask 40
up route -v add default gw 10.1.208.1 dev eth0
To let avahi resolve the IPv6 addresses change the hosts line in /etc/nsswitch.conf:
hosts:          files mdns6_minimal [NOTFOUND=return] dns mdns6
to:
hosts:          files mdns_minimal [NOTFOUND=return] dns mdns