IPv6 /127 subnet
An IPv6 /127 fixes the first 127 bits and leaves 1 for subnets and interfaces. That is 2 addresses.
Example: 2001:db8::/127
- CIDR block
- 2001:db8::/127
- Network address
- 2001:db8::
- Last address
- 2001:db8::1
- Total addresses
- 2
- Network, written out
- 2001:0db8:0000:0000:0000:0000:0000:0000
Check another address in the subnet calculator.
Where you see an IPv6 /127
- RFC 6164 recommends a /127 for point-to-point links between routers.
What fits inside an IPv6 /127
| Smaller block | How many |
|---|---|
| /128 | 2 |
Splitting 2001:db8::/127 into /128 blocks starts with 2001:db8::/128, 2001:db8::1/128.
How many fit in a larger block
- A /32 holds 2^95 blocks of IPv6 /127.
- A /48 holds 2^79 blocks of IPv6 /127.
- A /56 holds 2^71 blocks of IPv6 /127.
- A /64 holds 9,223,372,036,854,775,808 blocks of IPv6 /127.
Questions
How many addresses are in an IPv6 /127?
An IPv6 /127 holds 2 addresses. IPv6 has no broadcast address, and RFC 6164 has routers disable the Subnet-Router anycast address on /127 links, so both addresses can be assigned.
What is an example of an IPv6 /127?
2001:db8::/127 runs from 2001:db8:: to 2001:db8::1. It is taken from 2001:db8::/32, the range reserved for documentation (RFC 3849).