Prefixes in IPv6
Lesson 40 of 46 in Coddy's IP Addressing and Subnetting course.
CIDR survived the upgrade: IPv6 prefixes work exactly like IPv4 ones, just on 128 bits. The overwhelmingly common subnet size is /64: the first four groups name the network, the last four identify the machine.
With 64 host bits, a single /64 holds 18 quintillion addresses, so IPv6 planning stops counting hosts entirely. You count networks, and every LAN simply gets a /64.
The network prefix is written like a subnet: keep the network groups, compress the zero host part to ::, add the length.
Challenge
BeginnerThe machine 2001:db8:aaaa:1:22:33:44:55/64: print its network prefix in compressed CIDR form.
Expected output:
2001:db8:aaaa:1::/64Try it yourself
All lessons in IP Addressing and Subnetting
Practice on your own: Terminal playground