Developer and Text Tools

IPv6 Private Addresses: How Unique Local Addresses (ULA) Work

The IPv6 equivalent of 192.168.x.x explained: fd00::/8 unique local addresses, why the prefix must be random, planning /64 subnets and reverse DNS.

Saizul Amin
Saizul Amin30 Oct 2026 · 3 min read
IPv6 Private Addresses: How Unique Local Addresses (ULA) Work

IPv6 Private Addresses: How Unique Local Addresses (ULA) Work

In IPv4, private networks use three well-known ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Because everybody uses the same ranges, trouble starts when networks meet: two companies merge, a VPN joins two home networks that both use 192.168.1.0/24, or a lab connects to an office. IPv6 fixes this with unique local addresses, or ULAs. The free IPv6 ULA Prefix Generator creates a proper ULA prefix, lists its subnets and gives the reverse DNS zone.

What a ULA looks like

ULAs are defined in RFC 4193 and live in fc00::/7. In practice every locally chosen prefix starts with fd, because the fc half was reserved for a central registry that was never created. The structure is:

  • 8 bits: fd.
  • 40 bits: a random global ID chosen by you.
  • 16 bits: a subnet ID, giving 65,536 subnets.
  • 64 bits: the interface ID of each device.

So a site gets a /48 prefix such as fd8f:67ed:f2b6::/48, and each network inside it gets a /64, such as fd8f:67ed:f2b6:1::/64.

Why the global ID must be random

The whole point of ULAs is that two independently chosen prefixes almost never clash. With 40 random bits there are about 1.1 trillion possibilities, so merging networks is painless. Choosing an easy prefix like fd00::/48 or fd12:3456:789a::/48 throws that away, because many other people choose the same easy values.

RFC 4193 suggests generating the ID by hashing the current time together with a hardware identifier using SHA-1 and taking the last 40 bits. The generator does exactly that, using a MAC address you enter or random bytes, and also offers plain random generation, which is equally good.

When to use ULAs

  • Internal services such as printers, storage, cameras and management interfaces that should never be reachable from the internet.
  • Stable internal addressing. Many internet providers change your global IPv6 prefix from time to time. Devices keep their ULAs, so internal DNS and firewall rules keep working.
  • Labs, containers and VPNs, where you need addresses that never conflict with real ones.

Devices usually have both a ULA and a global address. The ULA is used for internal traffic and the global address for the internet.

Planning subnets

A /48 gives 65,536 /64 subnets, more than any home or small office will need. A simple plan uses the subnet ID to mean something: 1 for the main LAN, 10 for servers, 20 for guests, 30 for IoT devices. Writing them in hex keeps addresses readable. The generator lists subnets from any starting ID with the first address in each, and exports the list as CSV for your documentation.

Writing addresses correctly

IPv6 addresses are written in eight groups of hex digits, with leading zeros dropped and the longest run of zero groups replaced by a double colon, as RFC 5952 recommends. The generator always uses this canonical form, so subnet zero of fd00:1:2::/48 is written fd00:1:2::/64.

Reverse DNS

To give internal addresses names in reverse lookups, create a zone under ip6.arpa made of the prefix's hex digits in reverse order, separated by dots. The generator shows the exact zone name for your prefix.

Step by step

  1. Choose the RFC 4193 method or random generation.
  2. Optionally enter a MAC address.
  3. Generate the /48 prefix.
  4. List the subnets you need and export them.
  5. Record the prefix and set up the reverse DNS zone.

Privacy

The calculation, including hashing a MAC address, happens in your browser and nothing is sent anywhere.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages