IPv6

The internet works with IP addresses, the addresses are unique to each connection. It allows the internet to communicate to other internet users. One of the most common IP addresses is 192.168.0.1 this is an private address which you may have on your home internet connection. As the address is private, it is only accessible to those on your home network.

The majority of the internet uses IPv4, however there is only so many IPv4 addresses that can go around. Subsequently the IPv6 has been developed to combat the ever decreasing IPv4 addresses. The use of IPv6 is still quiet new, many providers have started to enable IPv6 on their network but the advancement is slow. Over the following years, we will see higher adoption rate for IPv6.

One of the most commonly use used commands is the PING command. It allows you to ping an address to see if the destination is alive or not. We will use google.co.uk as an example.

google.co.uk has address 173.194.45.88 google.co.uk has IPv6 address 2a00:1450:4007:806::101f

Here we can ping google normally over IPv4:

ping google.co.uk
PING google.co.uk (173.194.45.88) 56(84) bytes of data.
64 bytes from par03s13-in-f24.1e100.net (173.194.45.88): icmp_seq=1 ttl=57 time=4.58 ms
64 bytes from par03s13-in-f24.1e100.net (173.194.45.88): icmp_seq=2 ttl=57 time=4.60 ms
64 bytes from par03s13-in-f24.1e100.net (173.194.45.88): icmp_seq=3 ttl=57 time=4.58 ms
64 bytes from par03s13-in-f24.1e100.net (173.194.45.88): icmp_seq=4 ttl=57 time=4.59 ms
--- google.co.uk ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 4.585/4.592/4.607/0.083 ms

We will be using the PING6 command for an IPvv6 address:

ping6 2a00:1450:4007:806::101f
PING 2a00:1450:4007:806::101f(2a00:1450:4007:806::101f) 56 data bytes
64 bytes from 2a00:1450:4007:806::101f: icmp_seq=1 ttl=57 time=4.51 ms
64 bytes from 2a00:1450:4007:806::101f: icmp_seq=2 ttl=57 time=4.55 ms
64 bytes from 2a00:1450:4007:806::101f: icmp_seq=3 ttl=57 time=4.57 ms
64 bytes from 2a00:1450:4007:806::101f: icmp_seq=4 ttl=57 time=4.56 ms
--- 2a00:1450:4007:806::101f ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 4.519/4.552/4.570/0.070 ms

For OVH servers, if you have an IPv6 address of 2001:41D0:8:CAa1::, your IPv6 gateway would be set to 2001:41D0:8:CAff:ff:ff:ff:ff

2001:41D0:8:CAa1:: = 2001:41D0:0008:CAa1:0000:0000:0000:0000 The IPv6 is represented over 8 sections. An IPv6 /64 allows for up to 18,446,744,073,709,551,616 (about 18.4 Quintillion) host addresses.
Configuration for IPv6

        iface eth0 inet6 static
	address 2001:41D0:8:CAa1::
	netmask 64
	post-up /sbin/ip -family inet6 route add 2001:41D0:8:CAff:ff:ff:ff:ff dev eth0
	post-up /sbin/ip -family inet6 route add default via 2001:41D0:8:CAff:ff:ff:ff:ff
	pre-down /sbin/ip -family inet6 route del default via 2001:41D0:8:CAff:ff:ff:ff:ff
	pre-down /sbin/ip -family inet6 route del 2001:41D0:8:CAff:ff:ff:ff:ff dev eth0