Create an ipv6 site and connect to it

On Kimsufi, get the current ipv6 assigned address:

ifconfig
...
eth0      Link encap:Ethernet  HWaddr 00:22:4d:ad:aa:b7  
          inet addr:5.346.26.43  Bcast:5.346.26.43  Mask:255.255.255.0          
          inet6 addr: 4001:43d0:a:fa2b::1/128 Scope:Global
          inet6 addr: fe80::222:4dff:fead:aab7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21749596 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13397719 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18551028720 (17.2 GiB)  TX bytes:2813996773 (2.6 GiB)
          Interrupt:16 Memory:d0400000-d0420000 
...

So 4001:43d0:a:fa2b::1/128 denotes the first ipv6 assigned to us. Though it says only a /128 (one ipv6) is assigned, we actually have a whole /64 block. To assign another, add:

ip addr add 4001:43d0:a:fa2b::2/128 dev eth0

Check it has been added:

ifconfig
...
eth0      Link encap:Ethernet  HWaddr 00:22:4d:ad:aa:b7  
          inet addr:5.346.26.43  Bcast:5.346.26.43  Mask:255.255.255.0         
          inet6 addr: 4001:43d0:a:fa2b::2/128 Scope:Global 
          inet6 addr: 4001:43d0:a:fa2b::1/128 Scope:Global
          inet6 addr: fe80::222:4dff:fead:aab7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21749596 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13397719 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18551028720 (17.2 GiB)  TX bytes:2813996773 (2.6 GiB)
          Interrupt:16 Memory:d0400000-d0420000 
...

If your network supports ipv6 ping to it and check (you need a ipv6 dns resolver):

ping6 4001:43d0:a:fa2b::1
PING 4001:43d0:a:fa2b::1(4001:43d0:a:fa2b::1) 56 data bytes
64 bytes from 4001:43d0:a:fa2b::1: icmp_seq=1 ttl=54 time=199 ms
64 bytes from 4001:43d0:a:fa2b::1: icmp_seq=2 ttl=54 time=218 ms
64 bytes from 4001:43d0:a:fa2b::1: icmp_seq=3 ttl=54 time=497 ms
64 bytes from 4001:43d0:a:fa2b::1: icmp_seq=4 ttl=54 time=775

ms

Add a AAAA record to point a DNS record to the ipv6 address.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.