IPv6.html


* created: 2026-05-11T19:54
* modified: 2026-06-01T00:07

title

Title

description

Description

related notes

IPv6

IPv4 no much internet for everybody :O. IPv6 much mooore internet for everybody!

Addresses

These have a length of 128 bit, which is split into eight hexadecimal blocks separated by a colon containing 16 bits each.

Structure:

  1. Global routing prefix (48 bit assinged by isp)
  2. Subnet ID (16 bit local subnet)
  3. Interface ID (64 bit host ID -- often mac address)

You are allowed to simplify IPv6 addresses by collapsing subsequent blocks of zeros (once) and eliding leading zeros: 2030:DE:22::33AF:0:1234 There is also this mixed IPv4/IPv6 notation used in some environments: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:ddd.ddd.ddd.ddd IPv6 uses ::1 as loopback address (localhost)

Unicast, Multicast, and Anycast

An application for anycast would be a service provided by multiple server, i.e., any server would be a valid target for the request, so the request should be sent to whoever is the nearest.

Scopes

Nodes often have multiple addresses. These are categorized by scope:

Automatic Address Configuration

IPv6 enables automatic address configuration similar to Dynamic Host Configuration Protocol. Small networks (without a router) use the link local address, larger ones, on the other side, must use unique local unicast or global unicast addresses

Stateless Address Auto Configuration (SLAAC)

A node generates its own interface ID. To ensure it's unique it often uses its MAC address, timestamp, or some other random number.