IPv6 Subnetting Basics: How IPv6 Addressing Works

Get started with IPv6 subnetting fundamentals. Understand 128-bit addresses, prefix notation, and how IPv6 subnet allocation differs from IPv4 networks.

2001:db8::/32IPv6

Detailed Explanation

IPv6 Subnetting Basics

IPv6 uses 128-bit addresses, a massive increase from IPv4's 32 bits. This provides approximately 3.4 x 10^38 unique addresses — enough to assign an IP to every atom on the surface of the Earth.

IPv6 Address Format

IPv6 addresses are written as eight groups of four hexadecimal digits, separated by colons:

2001:0db8:85a3:0000:0000:8a2e:0370:7334

Shortening rules:

  • Leading zeros in each group can be omitted: 2001:db8:85a3:0:0:8a2e:370:7334
  • One consecutive sequence of all-zero groups can be replaced with ::: 2001:db8:85a3::8a2e:370:7334

IPv6 CIDR Notation

Just like IPv4, IPv6 uses CIDR notation: 2001:db8::/32 means the first 32 bits are the network prefix.

Standard IPv6 Allocation Model

The typical IPv6 addressing hierarchy is:

Prefix Assignment Purpose
/32 ISP allocation Assigned to an ISP by RIR
/48 Site prefix Assigned to a customer site
/64 Subnet A single network segment
/128 Host address A single interface

Key Differences from IPv4

  1. No NAT needed — with virtually unlimited addresses, every device gets a globally unique IP
  2. No broadcast — IPv6 uses multicast and anycast instead
  3. /64 is the standard subnet — the last 64 bits are always the interface identifier (host portion)
  4. Autoconfiguration — SLAAC (Stateless Address Autoconfiguration) lets hosts generate their own addresses

Why /64 Is Special

In IPv6, the /64 boundary is architecturally significant. The first 64 bits are the network prefix, and the last 64 bits are the interface identifier. This fixed boundary simplifies routing and enables SLAAC. Breaking this convention (using /65 or smaller) can cause compatibility issues with many protocols and devices.

Use Case

An ISP receives a /32 allocation from the regional registry and assigns /48 prefixes to each customer, who then creates /64 subnets for each network segment.

Try It — Subnet Calculator

Open full tool