IPv6 address expansion reverses the compression process by restoring omitted zeros and replacing double-colon notation with the full hextet groups it represents. This skill is essential for correctly interpreting and working with compressed IPv6 addresses.
IPv6 Address Expansion
We compressed an IPv6 address and removed those zeros, but how do we figure out what the full IPv6 address is by putting the zeros back in?
Here's a list of compressed addresses over here. Let's go ahead and expand them. What I'm going to do first of all is figure out where that double colon is at, and figure out how many that is representing. So if I count this: one, two, three, four, five, six — there are six hextets, so that's representing two hextets. I know that there's going to be two of them there. Once I've done that, then I just can fill in the rest of the zeros here.
So 2001, colon — it's missing a zero there, I know there's four characters there — so 0db8, colon, 0000, colon, 85a3. And then here's where that double colon is at, so I know those are two hextets, so I'll do one and two. And then finish it off: 8a2e, and then add one more zero there for that last one.
Here's a series of different IPv6 addresses. Figure out what the expanded version of all of them is, and then check your work.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →