IPv6 addresses can be shortened by removing leading zeros and replacing consecutive all-zero groups with a double colon, which can only be applied once per address. This content covers the rules and hands-on practice for applying both compression techniques correctly.
IPv6 Address Compression
We went over how we could compress these by removing some of the unnecessary zeros. We know that leading zeros are not necessary, because we can just assume that there are zeros there and not have a problem. Then we can also take a series of zeros and compress that down into just a colon colon, but we can only do that once.
So let's write this out. Compressing this into the colon colon, we can remove this zero and this zero out of there. I have to keep that 0 there, because that is going to be an important one. So 2001:db8:85a3::8a2e:370:7334. There is the answer.
Go through all of these, rewrite them, and then see how well you did. Here are the answers, so go ahead and check your answers. Hopefully you did that well; if not, go ahead and practice that before proceeding.
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 →