# ULA Generator: Random Private IPv6 Prefix (RFC 4193)

Generate an RFC 4193 unique local IPv6 prefix: a random 40-bit Global ID in fd00::/8, giving a /48 with 65,536 /64 subnets. Modes: make (random, the default, from a cryptographic random source), rfc (the standard's own method, section 3.2.2, SHA-1 of a timestamp and an EUI-64, with the intermediate values), check (validate an existing ULA: it flags fc00::/8, which is reserved, and Global IDs that look hand picked). Returns the prefix, Global ID, up to 256 /64 subnets with example hosts, the ip6.arpa reverse zone and config snippets for radvd, systemd-networkd, OpenWrt, Docker and Kubernetes. The answer is random: it is never cached.

**Not for:** Public IPv6 allocation, or making an address reachable from the internet: a ULA is private.

- Tool id: `ula-generate`
- Category: ip
- Execution: pure
- MCP tool `ula_generate` at https://lookupowl.com/mcp
- REST `GET https://lookupowl.com/api/v1/tools/ula-generate` (or POST a JSON body)
- OpenAPI: https://lookupowl.com/api/openapi.json

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `mode` | "make" \| "rfc" \| "check" | no | `"make"` | make: a random Global ID (default). rfc: the standard's own method (RFC 4193 section 3.2.2, SHA-1 of the time and a MAC). check: validate a ULA you already have (give it in `validate`). |
| `count` | integer | no | `16` | How many /64 subnets to list, 1 to 256. min 1, max 256 |
| `globalId` | string | no | `""` | Your own Global ID, 10 hex digits (40 bits), with or without colons. Leave empty to get a random one: a hand picked one is easy to clash with. max length 14 |
| `subnetId` | string | no | `""` | The subnet ID of the first subnet, 4 hex digits. Default 0000. max length 4 |
| `mac` | string | no | `""` | A MAC address, used only by the rfc method. Leave empty and a made-up one is used for this run. max length 40 |
| `validate` | string | no | `""` | A ULA or an IPv6 address to check (check mode), for example fd12:3456:789a::/48. max length 100 |

## Output

Results are wrapped in an envelope: `tool`, `version`, `requestId`, `data`, `summary`, `meta` (cache status, timing), `permalink`. `data` has these fields:

| Field | Type | Description |
|---|---|---|
| `mode` | "make" \| "rfc" \| "check" |  |
| `prefix` | string \| null | The /48 prefix, for example fd9a:4c1e:77b2::/48. null in check mode when the text is not a ULA. |
| `globalId` | string \| null | The 40-bit Global ID as 10 hex digits. |
| `subnets` | object[] |  |
| `reverseZone` | string \| null | The ip6.arpa zone of the /48. |
| `snippets` | object | Config snippets with <...> placeholders. |
| `rfc` | object | The intermediate values of the rfc method (RFC 4193 section 3.2.2). |
| `handPicked` | boolean | The Global ID you gave looks hand picked (a run of one digit, an ascending run, 0000, a known example). |
| `why` | string \| null | Why it looks hand picked. |
| `validate` | object |  |
| `notes` | string[] |  |

## Examples

### Make a random prefix with 16 subnets

```json
{"mode":"make","count":16,"globalId":"","subnetId":"","mac":"","validate":""}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/ula-generate?count=16&globalId=&mac=&mode=make&subnetId=&validate='
```

Web page: https://lookupowl.com/ula-generator

### The standard's own method

```json
{"mode":"rfc","count":4,"globalId":"","subnetId":"","mac":"00:1b:44:11:3a:b7","validate":""}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/ula-generate?count=4&globalId=&mac=00%3A1b%3A44%3A11%3A3a%3Ab7&mode=rfc&subnetId=&validate='
```

Web page: https://lookupowl.com/ula-generator?q=4&mode=rfc

### Check a prefix that looks hand picked

```json
{"mode":"check","count":16,"globalId":"","subnetId":"","mac":"","validate":"fd12:3456:789a::/48"}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/ula-generate?count=16&globalId=&mac=&mode=check&subnetId=&validate=fd12%3A3456%3A789a%3A%3A%2F48'
```

Web page: https://lookupowl.com/ula-generator?mode=check

## Web pages

- https://lookupowl.com/ula-generator

## Limits and caching

- Cost: 1 unit for a live lookup, 1 unit for a cached one. Budgets are per network and published in the `RateLimit` response headers.
- Cache: results are never cached.
- Timeout: 5 s.

## Related tools

- [IPv6 Compress and Expand](https://lookupowl.com/tools/ipv6-format.md): Shorten IPv6 addresses to RFC 5952 canonical form, or expand them to the full 32-digit form.
- [VLSM Subnet Planner: Split a Network into Subnets](https://lookupowl.com/tools/subnet-plan.md): Split a network into equal subnets or right-sized VLSM subnets for named host counts, and see what is left.
- [IP Subnet Calculator](https://lookupowl.com/tools/subnet-calculator.md): Network, broadcast, usable range, masks and exact host counts for any IPv4 or IPv6 subnet.
- [IP Address Type Checker: Private, CGNAT or Public?](https://lookupowl.com/tools/ip-classify.md): Check what kind an IP address or block is: private, shared (CGNAT), link-local, documentation, multicast, reserved or public, with the RFC.
- [IP Address Converter](https://lookupowl.com/tools/ip-convert.md): Convert IP addresses to decimal, hex and binary, IPv4 to IPv6 forms, and pull the IPv4 out of an IPv6 address.

## Guide: IPv6 ULA generator

A random private IPv6 prefix for your network, with its subnets, reverse zone and config lines.

### What you get

A unique local address (ULA) is the IPv6 counterpart of a private network: `fd00::/8` set aside by RFC 4193 for use inside one site. You pick a /48 by choosing a 40-bit Global ID, and the standard says it must be random, so that two networks that are joined later almost never clash. This page makes the Global ID from your browser's cryptographic random source. With it you get the prefix, the first /64 subnets in groups of 16, the `ip6.arpa` reverse zone, and ready lines for radvd, systemd-networkd, OpenWrt, Docker and Kubernetes.

A ULA is private, not secret. It is not reachable from the internet only because your router does not forward it, and anyone inside your network can see it.

### Three ways to use it

1. **Make one**: The default. A random 40-bit Global ID, a /48 with 65,536 /64 subnets. Use "Your own Global ID" only if you must: a hand picked one such as `fd00::/48` or `fd12:3456:789a::/48` is easy to clash with, and the page says so.
2. **The RFC way**: Follows section 3.2.2 of RFC 4193: the time of day, an EUI-64 made from a MAC address, SHA-1 of the two, and the last 40 bits as the Global ID. You see all four values. A random number is as good; this method exists so you can follow the document.
3. **Check one I have**: Paste a ULA or an IPv6 address. The page tells you whether it is a valid ULA, labels its Global ID and subnet ID, and warns about `fc00::/8` (the half reserved for a future registry, not for use) and about Global IDs that look hand picked.

### The 128 bits of a ULA

| Part | Bits | What it is |
|---|---|---|
| `fd` | 8 | The fixed prefix: locally assigned |
| Global ID | 40 | Random, so two sites rarely clash |
| Subnet ID | 16 | Your own subnets: 65,536 of them |
| Interface ID | 64 | One per device |

### How likely is a clash?

The exact birthday bound on the 1,099,511,627,776 possible Global IDs:

| Networks that might ever be joined | Chance at least two share a Global ID |
|---|---|
| 2 | about 0.00000000009% (1 in 1.1 trillion) |
| 1,000 | about 0.000045% |
| 10,000 | about 0.0045% |
| 100,000 | about 0.45% |

Random Global IDs make a clash practically impossible for a company. Picking `fd00::/48` by hand makes one likely, because many people choose the same pretty values.

### What happens to your prefix

With JavaScript on, the prefix is made in your browser and nothing is sent. Without JavaScript, the form posts to our server, which makes one for that request, answers with `Cache-Control: no-store` and keeps nothing. The prefix is never put in a page address and has no share link: to move it, copy it. REST and MCP answers are random too, so they are never cached. See the [privacy policy](https://lookupowl.com/privacy).

### Frequently asked questions

**What is a ULA?**

A unique local address is a private IPv6 address in `fd00::/8` (RFC 4193). It works inside your network, is not routed on the internet and is the IPv6 equivalent of `10.0.0.0/8`.

**Why not use fd00::/48?**

The standard's protection against two networks clashing is that the 40-bit Global ID is random. Many people choose `fd00::` or `fd12:3456:789a::`, so those clash in practice.

**What is the difference between fc00::/8 and fd00::/8?**

Both are in `fc00::/7`. The `fd` half is for local use today. The `fc` half is kept for a central registry that was never set up, so do not use it.

**Is a ULA more secure than a public address?**

No. It is private, not secret. A router that does not forward it keeps it off the internet, and anyone inside your network can see it.
