IPv6 /48 Prefix Allocation to 8 Departments
Advanced DesignQuestion
Your organization has been assigned the IPv6 prefix 2001:db8:abcd::/48. You need to allocate a /56 block to each of 8 departments, and further sub-divide each /56 into /64 subnets for individual VLANs. How many /64 subnets does each department receive, and how many /64 subnets exist in the entire /48?
Given
{
"prefix": "2001:db8:abcd::/48",
"departments": 8
}
Answer
{
"department_allocation_prefix": 56,
"subnets_per_department_64s": 256,
"total_64s_in_48": 65536,
"departments": [
{
"dept": 1,
"block": "2001:db8:abcd:0000::/56",
"range_start": "2001:db8:abcd:0000::/64",
"range_end": "2001:db8:abcd:00ff::/64"
},
{
"dept": 2,
"block": "2001:db8:abcd:0100::/56",
"range_start": "2001:db8:abcd:0100::/64",
"range_end": "2001:db8:abcd:01ff::/64"
},
{
"dept": 3,
"block": "2001:db8:abcd:0200::/56",
"range_start": "2001:db8:abcd:0200::/64",
"range_end": "2001:db8:abcd:02ff::/64"
},
{
"dept": 4,
"block": "2001:db8:abcd:0300::/56",
"range_start": "2001:db8:abcd:0300::/64",
"range_end": "2001:db8:abcd:03ff::/64"
},
{
"dept": 5,
"block": "2001:db8:abcd:0400::/56",
"range_start": "2001:db8:abcd:0400::/64",
"range_end": "2001:db8:abcd:04ff::/64"
},
{
"dept": 6,
"block": "2001:db8:abcd:0500::/56",
"range_start": "2001:db8:abcd:0500::/64",
"range_end": "2001:db8:abcd:05ff::/64"
},
{
"dept": 7,
"block": "2001:db8:abcd:0600::/56",
"range_start": "2001:db8:abcd:0600::/64",
"range_end": "2001:db8:abcd:06ff::/64"
},
{
"dept": 8,
"block": "2001:db8:abcd:0700::/56",
"range_start": "2001:db8:abcd:0700::/64",
"range_end": "2001:db8:abcd:07ff::/64"
}
],
"remaining_56s": 248
}
Try to solve it first, then click Reveal Answer
Step-by-Step Explanation
Step 1: Understand the IPv6 prefix hierarchy
IPv6 address structure relevant to this exercise:
/48 → Site prefix (assigned to your organization)
/56 → Department block (8 bits for department use)
/64 → Individual subnet (standard VLAN/subnet size)
/128 → Host address
The difference in bits between prefix lengths tells you how many subnets fit:
- /48 → /56: 8 bits difference → 2^8 = 256 possible /56 blocks in the /48
- /56 → /64: 8 bits difference → 2^8 = 256 possible /64 subnets per /56
- /48 → /64: 16 bits difference → 2^16 = 65,536 possible /64 subnets total
Step 2: Assign a /56 to each department
The third group of 16 bits in the address (the subnet field) spans bits 49–64. For a /48 prefix 2001:db8:abcd::/48, the subnet field occupies the 4th hextet.
| Dept | /56 Block | /64 Range (within dept) |
|---|---|---|
| 1 | 2001:db8:abcd:0000::/56 | ::0000:: – ::00ff::/64 |
| 2 | 2001:db8:abcd:0100::/56 | ::0100:: – ::01ff::/64 |
| 3 | 2001:db8:abcd:0200::/56 | ::0200:: – ::02ff::/64 |
| 4 | 2001:db8:abcd:0300::/56 | ::0300:: – ::03ff::/64 |
| 5 | 2001:db8:abcd:0400::/56 | ::0400:: – ::04ff::/64 |
| 6 | 2001:db8:abcd:0500::/56 | ::0500:: – ::05ff::/64 |
| 7 | 2001:db8:abcd:0600::/56 | ::0600:: – ::06ff::/64 |
| 8 | 2001:db8:abcd:0700::/56 | ::0700:: – ::07ff::/64 |
Step 3: How many /64s per department?
Each /56 contains 2^(64-56) = 2^8 = 256 /64 subnets.
This is typically far more than any department will ever use. Even a large campus with 100 VLANs would only use 100/256 ≈ 39% of their allocation.
Step 4: Total /64 subnets in the /48
2^(64-48) = 2^16 = 65,536 /64 subnets in the entire /48.
After allocating 8 × /56: - Used: 8 /56 blocks - Remaining: 256 - 8 = 248 /56 blocks available
Step 5: IPv6 address planning best practices
- Always assign /64 to individual segments (required for SLAAC/EUI-64)
- Reserve /56 per building or department for autonomous management
- Do NOT subnet smaller than /64 for host-facing links
- Use the full 128-bit address space freely — scarcity is not an IPv6 concern