Split an IPv6 /48 into 256 /56 branch sites

Allocate /56 site blocks and /64 LANs from 2001:db8:1200::/48. Find the exact addresses for branch 42 and LAN 5.

Try these inputs

Worked calculation

  1. The site split adds 56 − 48 = 8 bits, making 2⁸ = 256 zero-based branch indices.
  2. Branch 42 is hexadecimal 2a. It occupies the upper byte of the fourth hextet, producing 2001:db8:1200:2a00::/56.
  3. The LAN split adds eight more bits. Index 5 fills the lower byte and yields 2001:db8:1200:2a05::/64.

Inputs

Prefix lengths
Zero-based. The first child has index 0.

Calculated in your browser

Results

Selected child
2001:db8:1200:2a00::/56
Selected leaf
2001:db8:1200:2a05::/64
Child prefixes
256

IPv6 prefix tree

IPv6 prefix treeThe parent connects to nearby child prefixes. The selected child connects to nearby leaf prefixes. Full CIDRs and indices appear in the table.2001:db8:1200::/482001:db8:1200::/482001:db8:1200:2900::/562001:db8:1200:…00::/562001:db8:1200:2a00::/562001:db8:1200:…00::/562001:db8:1200:2b00::/562001:db8:1200:…00::/562001:db8:1200:2a04::/642001:db8:1200:…04::/642001:db8:1200:2a05::/642001:db8:1200:…05::/642001:db8:1200:2a06::/642001:db8:1200:…06::/64/48 → /56 → /64
  • Selected prefix
  • Nearby or parent prefix
The parent connects to nearby child prefixes. The selected child connects to nearby leaf prefixes. Full CIDRs and indices appear in the table.
Parent network
2001:db8:1200::/48
Last address in parent
2001:db8:1200:ffff:ffff:ffff:ffff:ffff
Full address
2001:0db8:1200:0000:0000:0000:0000:0000
Compressed address
2001:db8:1200::
Addresses in parent
1,208,925,819,614,629,174,706,176
Leaves in selected child
256
Address space
IPv6
Prefixes near the selected indices
LevelIndexPrefixSelection
Child412001:db8:1200:2900::/56Neighbor
Child422001:db8:1200:2a00::/56Selected
Child432001:db8:1200:2b00::/56Neighbor
Leaf42001:db8:1200:2a04::/64Neighbor
Leaf52001:db8:1200:2a05::/64Selected
Leaf62001:db8:1200:2a06::/64Neighbor

Questions

Is site 0 a valid branch allocation within a /48?

Yes. The all-zero child prefix is a valid /56. Plan names or reservation policy can keep it unused if you prefer.

How many /64 LANs fit inside just branch 42?

Each /56 contains 256 /64s, with fourth hextets 2a00 through 2aff in this branch.

References