IPv6 ULA Prefix Generator

Get a private IPv6 address range for your home lab, office or VPN that will not clash when networks are merged, with subnets ready to assign.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Choose a method

    RFC 4193 or random.

  2. 2
    Enter a MAC

    Optional for the RFC method.

  3. 3
    Generate

    Get your /48 prefix.

  4. 4
    List subnets

    From any starting ID.

  5. 5
    Note the reverse zone

    For internal DNS.

  6. 6
    Document it

    Record the prefix for your network.

About this tool

IPv6 has its own equivalent of the private 10.0.0.0, 172.16.0.0 and 192.168.0.0 ranges: unique local addresses, defined in RFC 4193. Instead of everyone sharing the same few ranges, which causes clashes when two companies merge or a VPN joins two home networks, each site picks a random 40-bit global ID and gets its own /48 prefix under fd00::/8. That makes collisions very unlikely. Picking the ID by hand, such as fd00::/48 or fd12:3456:789a::/48, defeats the purpose, which is why a generator helps. This tool follows the algorithm in the RFC: it combines the current time in NTP format with an EUI-64 identifier derived from a MAC address you enter, or random bytes, hashes them with SHA-1 and takes the last 40 bits. It can also simply use 40 random bits, which is equally good. You get the /48 prefix in standard notation, a list of /64 subnets starting from any subnet ID, the first address in each, and the reverse DNS zone name. It also checks prefixes someone else chose.

The structure of a ULA

- 7 bits fc00::/7, with the eighth bit set to 1 for locally assigned prefixes, giving fd. - 40 bits of global ID, random. - 16 bits of subnet ID, giving 65,536 subnets per site. - 64 bits of interface ID for hosts within each subnet. The fc half of the range is reserved for a central allocation scheme that was never set up, so locally generated prefixes always start with fd.

When to use ULAs

- Internal services that should never be reached from the internet, such as printers, NAS devices and management interfaces. - Stable internal addresses when your internet provider changes your global prefix. - Lab, container and VPN networks. Devices usually also have global addresses for internet access; ULAs add stable internal addressing alongside them.

Notation

Addresses are written as eight groups of up to four hex digits, with leading zeros removed and the longest run of zero groups replaced by a double colon, following RFC 5952. The generator writes prefixes and subnets in that canonical form.

Reverse DNS

For PTR records, create the zone shown, made of the prefix's nibbles in reverse order under ip6.arpa, on your internal DNS server.

Limits

ULAs are not routed on the internet and need NAT66 or global addresses for internet access. The randomness gives uniqueness in practice, not by registration. Treat the generated prefix as yours and record it in your network documentation.

Worked example

Checking fd00:0001:0002::/48 returns the canonical prefix fd00:1:2::/48 with subnets fd00:1:2::/64 and fd00:1:2:1::/64, while a random generation gives a prefix such as fd8f:67ed:f2b6::/48 with reverse zone 6.b.2.f.d.e.7.6.f.8.d.f.ip6.arpa.

Quick facts

Frequently asked questions

What is a ULA?

A private IPv6 address from fd00::/8, similar to 192.168.x.x in IPv4.

Why not use fd00::/48?

Everyone picking the same prefix causes clashes when networks join; a random ID avoids it.

Is the RFC algorithm better than random?

Both are fine; the RFC method is one way to get good randomness.

How many subnets do I get?

65,536 /64 subnets per /48 prefix.

Can ULAs reach the internet?

Not directly; devices also need global addresses or NAT66.

Is my MAC address sent anywhere?

No. Hashing happens in your browser.

Guides for this tool

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