What is an IPv6 ULA generator?
A ULA (Unique Local Address) is the IPv6 equivalent of private IPv4 space such as 192.168.0.0/16. It lives in the block fc00::/7, is meant for use inside a site or between a few sites and is not routed on the public internet. Unlike IPv4 private ranges, every ULA prefix is supposed to be unique: instead of everybody using 192.168.1.0/24 and clashing when two networks are joined by a VPN, RFC 4193 tells you to pick a 40-bit pseudo-random Global ID. In practice the prefix always starts with fd (the locally assigned half of the block), followed by the 40 random bits, which gives a /48 for your site.
An IPv6 ULA generator does that step for you. It builds a /48 prefix such as fda1:b2c3:d4e5::/48, lists the first and last /64 subnets inside it (you have 16 bits of subnet ID, so 65,536 networks of /64) and lets you copy the lot. Use it when you design a home lab, a Kubernetes or Docker network, a VPN overlay, an on-premises data centre or any private network that must not depend on a provider-assigned prefix.
The tool offers the two ways to get the Global ID: the method suggested by the RFC (SHA-1 of the current time plus a MAC address, keeping the low 40 bits) and plain browser randomness. Everything runs in your browser and nothing is sent to a server.
How to generate a ULA prefix
- Choose the method: MAC address plus time (the algorithm suggested by RFC 4193) or random (40 bits from your browser's secure random generator).
- With the MAC method, type any MAC address in the field. Use your own interface's address or a made-up one; it is only an input to the hash.
- Read the result: the full ULA prefix, the Global ID, and the first and last routable /64 blocks.
- Press "Generate another" for a different prefix (the time changes the result of the MAC method).
- Copy all the values and keep the prefix in your network documentation so that no two sites reuse it.
Examples
Anatomy of a ULA
A Global ID of a1b2c3d4e5 gives the prefix fda1:b2c3:d4e5::/48: fd + the 40-bit ID, then 16 bits of subnet ID and 64 bits for the host.
First and last subnets
For fda1:b2c3:d4e5::/48 the first /64 is fda1:b2c3:d4e5::/64 and the last one is fda1:b2c3:d4e5:ffff::/64, so you can number your LANs from 0000 to ffff.
A host address
Inside fda1:b2c3:d4e5:1::/64, a server could use fda1:b2c3:d4e5:1::10. To inspect it, paste it in the subnet calculator, which also reads IPv6.
Two sites, no clash
Site A uses fd3c:91aa:5e07::/48 and site B uses fd7b:2e10:c4d9::/48. Because each Global ID is random, joining the sites by VPN does not require renumbering. With two networks both on 192.168.1.0/24 it would.
The block size
A /48 has 2^80 addresses and a /64 has 2^64.
Common mistakes
- Choosing a pretty prefix by hand such as
fd00::/48. It works, but everyone else picks it too, which defeats the purpose of a unique prefix. - Using
fc00::/8. The RFC reserves that half for a central allocation that was never defined; onlyfd00::/8is used. - Trying to route a ULA to the internet. ULAs are not globally routable; add a global prefix as well or use NAT66 knowingly.
- Typing an invalid MAC. The MAC method needs a valid address, with 6 pairs of hex digits.
- Sharing a prefix between unrelated organizations. Generate one per site or company.
- Using subnets smaller than /64. SLAAC needs a /64 per LAN.
Frequently asked questions
What is the difference between a ULA and a link-local address?
A link-local address (fe80::/10) works only on one network segment and is configured automatically. A ULA is valid across all of your internal network and can be routed between your own sites.
Do I still need a global IPv6 prefix?
For internet access, yes. Devices can have both a ULA and a global address, and use the ULA for internal traffic that must keep working if the provider changes your prefix.
Is the prefix really unique?
It is random over 40 bits, so a collision between two sites is very unlikely (about one in a trillion per pair), but not impossible.
Does the generator store my prefix?
No. Nothing is sent or saved.
What else can help me plan a network?
The subnet calculator splits blocks and the MAC address generator creates test hardware addresses.