Allocate /60 departments and /64 LANs from an IPv6 /56

Subdivide 2001:db8:3c00:ab00::/56 into sixteen department prefixes and locate a specific LAN inside department 3.

Try these inputs

Worked calculation

  1. Each stage adds four bits, so there are 16 /60s per /56 and 16 /64s per /60.
  2. Put department index 3 into the third hex digit of the fourth hextet, giving ab30 and 2001:db8:3c00:ab30::/60.
  3. Use the last hex digit for LAN 9, which makes the fourth hextet ab39.

Inputs

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

Calculated in your browser

Results

Selected child
2001:db8:3c00:ab30::/60
Selected leaf
2001:db8:3c00:ab39::/64
Child prefixes
16

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:3c00:ab00::/562001:db8:3c00:ab00::/562001:db8:3c00:ab20::/602001:db8:3c00:…20::/602001:db8:3c00:ab30::/602001:db8:3c00:…30::/602001:db8:3c00:ab40::/602001:db8:3c00:…40::/602001:db8:3c00:ab38::/642001:db8:3c00:…38::/642001:db8:3c00:ab39::/642001:db8:3c00:…39::/642001:db8:3c00:ab3a::/642001:db8:3c00:…3a::/64/56 → /60 → /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:3c00:ab00::/56
Last address in parent
2001:db8:3c00:abff:ffff:ffff:ffff:ffff
Full address
2001:0db8:3c00:ab00:0000:0000:0000:0000
Compressed address
2001:db8:3c00:ab00::
Addresses in parent
4,722,366,482,869,645,213,696
Leaves in selected child
16
Address space
IPv6
Prefixes near the selected indices
LevelIndexPrefixSelection
Child22001:db8:3c00:ab20::/60Neighbor
Child32001:db8:3c00:ab30::/60Selected
Child42001:db8:3c00:ab40::/60Neighbor
Leaf82001:db8:3c00:ab38::/64Neighbor
Leaf92001:db8:3c00:ab39::/64Selected
Leaf102001:db8:3c00:ab3a::/64Neighbor

Questions

Why does changing the department move the fourth hextet by 0x10?

A /60 fixes the upper 12 bits of that hextet. Its low four bits belong to the sixteen /64s within the department.

What is the highest LAN index in one /60 department?

The index is 15, represented by f in hexadecimal.

References