IPv6 address compression

Viewed 8070

I have been compressing IPv6 addresses but for some reason I can't compress this one:
2​b​0​6​:​0​0​0​0​:​0​0​0​0​:​1​f​2​b​:​d​7​7​f​:​0​0​0​0​:​0​0​0​0​:​8​9​c​e​

This is what I compressed it too: 2b06::1f2b:d77f::89ce

But this is not working, and I wonder, why.

1 Answers

This is the correct way to do it: 2b06::1f2b:d77f:0:0:89ce
You can't have :: more than once in one address.

This 2b06::1f2b:d77f::89ce would be ambiguous, as it could expand to
2b06:0000:1f2b:d77f:0000:0000:0000:89ce,
2​b​0​6​:​0​0​0​0​:​0​0​0​0​:​1​f​2​b​:​d​7​7​f​:​0​0​0​0​:​0​0​0​0​:​8​9​c​e, or
2​b​0​6​:​0​0​0​0​:​0​0​0​0​:0000:​1​f​2​b​:​d​7​7​f​:​0​0​0​0​:​8​9​c​e.

Related