Shortening IPv6 Addresses


(Rene Molenaar) #1

This topic is to discuss the following lesson:


(ANSHUL G) #2

Hello Sir…
i want to know that string of zero’s can be removed by :: and a group of 4 zero’s can be removed by :0 but my question is that these two can be done in together or one can be removed at a time ?? i.e we can either remove string of zero or group of 4 zero’s at a time? or together?


(Lazaros Agapides) #3

Hello Anshul

If you have the following address:

2041:0000:140F:1234:1234:6543:875B:131B

you can shorten it to:

2041:0:140F:1234:1234:6543:875B:131B

but you can’t shorten it to:

2041::140F:1234:1234:6543:875B:131B

A string of at least two sets of zeros such as :0000:0000: can be replaced with :: but a single string of zeros such as :0000: can only be replaced with :0:

Now having said that, even if you do it people will still know what you’re talking about, and some operating systems or network device firmware may even accept it, but according to the official rules, this is what needs to be done.

I hope this has been helpful!

Laz