Many thanks to Frank for the opportunity to contribute to the expansion of frankysweb.de with a blog post. This article is intended to give an overview of IPv6 in relation to Windows operating systems. It will be exciting and everyone can participate on their computer.
Quo vadis IPv6?
Everyone is talking about it. Most have activated IPv6 (more on this topic later). Very few have sufficient know-how to be able to administer IPv6 networks. That's my conclusion after 7 years as a trainer. ISP administrators excluded.
What is IPv6?
IPv6 is a new Internet protocol. Although new would be a bit of an exaggeration. IPv6 has been around since 1996, and since Windows Vista, operating systems have been called dual-stack OS, which means IPv4 and IPv6 are activated. IPv6 plays a major role in IOT due to the large number of possible addresses, namely 2^128. In this article, we will focus on two IPv6 address types, which are also by far the most important: Link-Local addresses and Global-Unicast addresses.
Link-Local addresses
Every Windows computer from Windows Vista onwards automatically generates an IPv6 link-local address. This can be recognized by the value fe80 at the beginning of the address:
Link-local addresses cannot be routed on the Internet. These addresses are generated automatically for each network card. In Windows, they are calculated from a random value. Microsoft has to do everything differently again: Other OS calculate the value from the MAC address. The %2 at the end of the address identifies the zone, I prefer to call this the network card ID.
So, to review this now: If every computer has an automatically generated IPv6 address, then DHCP becomes obsolete.
Global-Unicast addresses
Global unicast addresses are routed on the Internet and are usually provided by the provider. They can usually be recognized by the 2 at the beginning of the address:
Der Leser dieses Artikel – der bis jetzt mitgemacht hat – verfügt möglicherweise über gar keine Global Unicast Adresse. Naja wir hier in Wien sind etwas moderner ;-) Mein ISP hat das Modem getauscht und jetzt bin ich quasi modern unterwegs. Beachte, dass ich über eine IPv4 Adresse und eine IPv6 Adresse verfüge. IPv6 wird bevorzugt verwendet, das beweist ein ping auf www.facebook.com:
Stop: Who has seen it? If not, it's best to read the Facebook address again carefully. What is not possible with IPv6 ;-)
My computer has 2 IPv6 addresses. One for internal communication and one for communication with the Internet.
DHCP and NAT are becoming less important
Which brings me to the next topic: Not only is DHCP becoming less important, but so is NAT. Each of my computers (including my virtual computers) has a global unicast address. Why translate the IPv6 address? There are enough of them. A look at my router reveals that I have 512 IPv6 addresses:
I actually own the network with the subnet mask /64, which means I have 2˄64 hosts. That's a lot.
Stateless Address Autoconfiguration vs. DHCP
My modem does not work with DHCP. The technology behind this is called Stateless Address Autoconfiguration and uses the following technique: The client starts and the router offers it a global unicast address (Router Advertisement). This computer then generates its own IPv6 address itself from the offered network 2a02:8388:b01:3700::/64. This means that there is no central database of IP addresses, as is the case with DHCP under IPv4.
And illustrated here graphically:
This example shows that the router only offers the network to the computer. The computer generates its IPv6 address itself and independently and this comes from the network 2a03::/64. At the same time, the default gateway is configured, which is only used for internal communication and is therefore a link-local address, i.e. this is the address of the router itself.
Closing words
I hope I was able to give you a good overview. There's a lot more to say, but this article shouldn't be too long. Anyone who is curious is welcome to at my blog in the IPv6 category. I am happy about every reader.
Kind regards,
Patrick (pewa2303)