Tag Archives: world ipv6 test day

IPv6 LAN

I just enabled IPv6 on my LAN, since next Wednesday is World IPv6 Test Day.

It was actually surprisingly simple. Here’s how:

  1. Since I don’t have a public IPv6 allocation, I picked a Unique Local Address (sort of the IPv6 equivalent of RFC 1918 private adddresses). The Unique Local Address prefix I picked is fc00:1:2:3::/64 fd00:1:2:3::/64. You could do the same, just change the 1:2:3 part (see IPv6 addresses). [Edit: see Alexander’s comment]
  2. On a Linux server on my network, I edited /etc/radvd.conf. I uncommented the main block, and changed the prefix to the one I’d chosen above:
    interface eth0
    {
            AdvSendAdvert on;
            MinRtrAdvInterval 30;
            MaxRtrAdvInterval 100;
            prefix fd00:1:2:3::/64
            {
                    AdvOnLink on;
                    AdvAutonomous on;
                    AdvRouterAddr off;
            };
    };
    
  3. I enabled IPv6 forwarding on the same Linux server by adding the following line to /etc/sysconfig/network:
    IPV6FORWARDING=yes
    

    (Note this is likely to be different for Debian derivatives). I had to restart the network stack to make that change.

  4. I started up the radvd service:
    service radvd start
    chkconfig radvd on
    

That was it: the Linux machines on my network quickly acquired IPv6 addresses and I could ssh between them by number:

$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:E0:81:74:02:28  
          inet addr:192.168.0.128  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fd00:1:2:3:2e0:81ff:fe74:228/64 Scope:Global
          inet6 addr: fe80::2e0:81ff:fe74:228/64 Scope:Link
[...]
$ ssh fd00:1:2:3:224:d7ff:fe4c:7b78
The authenticity of host 'fd00:1:2:3:224:d7ff:fe4c:7b78 (fd00:1:2:3:224:d7ff:fe4c:7b78)' can't be established.
RSA key fingerprint is 92:2c:a1:e2:35:84:62:eb:d5:c9:a4:8d:f0:f2:c5:96.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'fd00:1:2:3:224:d7ff:fe4c:7b78' (RSA) to the list of known hosts.
Last login: Fri May  6 15:19:01 2011
$ last | head -1
rjones   pts/18       fd00:1:2:3:2e0:8 Thu Jun  2 17:48   still logged in

Now I just need to give them IPv6 DNS entries.

You need to be careful now since machines will be accessible over IPv6, which has implications for firewalls.

8 Comments

Filed under Uncategorized