IPv4 vs IPv6

The differences between the two IP versions that actually matter in day-to-day network engineering — addressing, configuration, NAT, headers and more, without vendor marketing.

Side-by-side comparison

IPv4 vs IPv6 at a glance
AttributeIPv4IPv6
Address size32 bits128 bits
Notation192.168.1.1 (four dotted-decimal octets)2001:db8::1 (eight hex groups, compressible)
Total addresses4,294,967,296≈3.4 × 1038
ConfigurationManual/static or DHCPSLAAC (stateless autoconfiguration) or DHCPv6
NATUbiquitous, largely because public addresses are scarceNot required by design; end-to-end addressing is the norm
HeaderVariable length (20–60 bytes), includes a checksumFixed 40-byte header, no IP-layer checksum
BroadcastSupportedNo broadcast; multicast instead, including efficient solicited-node multicast for neighbor discovery
FragmentationBy the sending host and intermediate routersBy the sending host only; routers rely on Path MTU Discovery

In raw capacity terms, IPv6 offers about 7.9 × 1028 times as many addresses as IPv4. The two notations are not interchangeable: an IPv4 address never contains letters or colons, and IPv6 uses prefix lengths (/64) rather than dotted masks.

Why IPv6 exists at all

IPv4's 4,294,967,296 addresses once seemed inexhaustible. They were not: IANA distributed its last central blocks in 2011, and every regional registry has since exhausted its own free pool. The short-term patches — NAT, carrier-grade NAT, address leasing markets — work, but they add complexity and break the original end-to-end model of the internet. IPv6's 128-bit space removes the scarcity that made those workarounds necessary.

Where you still need IPv4 today

The practical takeaway: learning IPv4 subnetting is not optional, even on networks with healthy IPv6 deployment. Our IPv4 subnet calculator and VLSM calculator cover that side.

The dual-stack reality

Most transitioned networks run both protocols side by side: every interface gets an IPv4 address and one or more IPv6 addresses, and applications use whichever the DNS answer suggests (A records for v4, AAAA records for v6). That means double the addressing plan, double the firewall policy surface and double the troubleshooting matrix — but it is how real networks operate during the long coexistence period.

When you do get a native IPv6 allocation, the planning math changes shape: you typically receive a /48 or /56 and slice it into /64 LANs. Work out the details with the IPv6 subnet calculator, or read the conventions behind the most common prefix on the /64 reference page.