N-01 · Subnet · IPv6 /128
/128 IPv6 subnet
A /128 IPv6 prefix fixes the first 128 of 128 bits and leaves 0. Its size, how it splits, where it sits among the usual allocation sizes and the RFC rules that apply to it.
Short answer
- Addresses
- 1The address itself
- Fit in one /64
- 2^64Smaller than a /64 by 64 bits
- Fit in one /48
- 2^801,208,925,819,614,629,174,706,176
IPv6 has no broadcast address and all-zeros and all-ones are ordinary values (RFC 4291 §2). A /128 is a single address, such as the loopback address (RFC 4291).
Where a /128 sits
How many /128 blocks the larger sizes hold.
| Block | /128 blocks in it |
|---|---|
| ::/0, all of IPv6 | 340,282,366,920,938,463,463,374,607,431,768,211,456 (2^128) |
| 2000::/3, global unicast | 42,535,295,865,117,307,932,921,825,928,971,026,432 (2^125) |
| 2001:db8::/32 | 79,228,162,514,264,337,593,543,950,336 (2^96) |
| 2001:db8:abcd::/48 | 1,208,925,819,614,629,174,706,176 (2^80) |
| 2001:db8:abcd:3400::/56 | 4,722,366,482,869,645,213,696 (2^72) |
| 2001:db8:abcd:3412::/64 | 18,446,744,073,709,551,616 (2^64) |
IANA assigns unicast space only from 2000::/3, which holds 42,535,295,865,117,307,932,921,825,928,971,026,432 (2^125) /128 blocks; the example blocks in the table are the ones around 2001:db8:abcd:3412:1e:5:a:7, all inside the documentation prefix 2001:db8::/32 (RFC 3849).
Rules for a /128
A /128 names one address. The special-purpose registry has several, listed below: the unspecified and loopback addresses (RFC 4291) and anycast addresses for services such as the Port Control Protocol.
RFC 3177 suggested a /128 only “when it is absolutely known that one and only one device is connecting”. RFC 6177 dropped that: “It is no longer recommended that /128s be given out.” One /64 holds 18,446,744,073,709,551,616 (2^64) of them.
Special-purpose /128 blocks
Blocks of exactly this size in the IANA IPv6 Special-Purpose Address Space registry.
| Block | Use |
|---|---|
| ::/128 | Unspecified Address |
| ::1/128 | Loopback Address |
| 2001:1::1/128 | Port Control Protocol Anycast |
| 2001:1::2/128 | Traversal Using Relays around NAT Anycast |
| 2001:1::3/128 | DNS-SD Service Registration Protocol Anycast |
Check an address
Pre-filled with 2001:db8:abcd:3412:1e:5:a:7/128. Change the address or the prefix.
Result
2001:db8:abcd:3412:1e:5:a:7/128
1 address
- First address
- 2001:db8:abcd:3412:1e:5:a:7
- Last address
- 2001:db8:abcd:3412:1e:5:a:7
- Prefix length
- /128
- Broadcast
- None in IPv6
A /128 is a single address. IPv6 has no broadcast address; the first address is the subnet-router anycast address (RFC 4291).
Inside 2001:db8::/32, reserved for documentation and examples (RFC 3849). Not routed.
Hex view
- Address
- 2001:0db8:abcd:3412:001e:0005:000a:0007
- Network
- 2001:0db8:abcd:3412:001e:0005:000a:0007
- Last
- 2001:0db8:abcd:3412:001e:0005:000a:0007
Each hex digit is 4 bits. Bold digits are fixed for the network; orange digits number the interfaces.
2001:db8:abcd:3412:1e:5:a:0/112 split into /128 · 65,536 blocks
- … 4 before
- 2001:db8:abcd:3412:1e:5:a:7/128◂
- … 65,524 more
Worked example
Take 2001:db8:abcd:3412:1e:5:a:7/128, written out in full as 2001:0db8:abcd:3412:001e:0005:000a:0007. All 128 bits are prefix, so the block is that one address: 2001:db8:abcd:3412:1e:5:a:7/128.
There is nothing to split. The /127 around it is 2001:db8:abcd:3412:1e:5:a:6/127 and the /64 is 2001:db8:abcd:3412::/64.
References
- RFC 4291, IP Version 6 Addressing Architecture: §2 (no broadcast), §2.3 (prefix notation), §2.6.1 (Subnet-Router anycast).
- RFC 3849, IPv6 Address Prefix Reserved for Documentation: 2001:db8::/32.
- RFC 5952, A Recommendation for IPv6 Address Text Representation.
- RFC 6177 (BCP 157), IPv6 Address Assignment to End Sites, which replaced RFC 3177.
- RFC 4862, IPv6 Stateless Address Autoconfiguration, §5.5.3.
- RFC 7421, Analysis of the 64-bit Boundary in IPv6 Addressing; RFC 7608 (BCP 198), prefix lengths in forwarding.
- IANA IPv6 Special-Purpose Address Space registry (updated 2025-10-09).
Other IPv6 prefixes
Related tools
- Subnet calculatorNetwork, broadcast, host range, masks and a binary view from any IPv4 or IPv6 address and prefix.
- CIDR calculatorTurn IPv4 or IPv6 ranges into the fewest CIDR blocks, merge a list, and check it for overlaps.
- VLAN plannerCarve a parent block into right-sized subnets with VLAN IDs, then export CSV or Markdown.