cancel
Showing results for
Did you mean:
Community Member

hi every body

2134:0000:1234:4567:2468:1236:2444:2106

can the above address be shortened as

2134::1234:4567:2468:1236:2444:2106

In one cisco book (ccnp bsci guide by catherine pacquet) it says consecutive zeroes field can be replaced by ::

but i read in different book by cisco

one or more than consecutive fields of zeros can be reduced by ::

now which one to believe

thanks a lot and have wonderful day!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Member

## Re: ipv6 address short form

Hi,

In your statement, 'one or more' represents 'one or more 16-bit group'

i.e.

0000 can be represented as :: , and

0000:0000 can also be represented as ::

See below for a brief explanation :

For eg. conside the below two addresses,

1080:0000:0000:0000:0008:0800:200C:417A

0000:0000:0000:0000:0000:0000:0A00:0001

In the above addresses, we do not need to write the leading zeros in each group of digits; for example, we can write

1080:0:0:0:8:800:200C:417A

0:0:0:0:0:0:A00:1

A further simplification is represented by the symbol ::, which replaces a series of zeros. This method replaces zeros only when they fill a complete 16-bit group, and the double colon can be used only once in any given address.By applying this shortcut, the two preceding addresses become

1080::8:800:200C:417A

::A00:1

We make the assumption that the IPv6 address has a fixed length so that we can compute how many zeros have been omitted. This shortcut can be applied either to the center of the address (as in the case of the first address), or to the leading (as in the case of the second address) or trailing zeros.

In fact, the extended form of these addresses results in the following:

They can be represented in compressed form as follows:

Thanks,

Vijaybabu

2 REPLIES
Gold

## Re: ipv6 address short form

Hi,

Consecutive fields Of Zeroes can be expressed with two colons, and you can Only do this once in a single IPv6 address; Example:

1234:1234:0000:0000:00000:00000:3434:3434

could be written as:

Zero Comp: 1234:1234::3434:3434

The Leading Zero Compression; in any field can be dropped but each block you do this must have at least on number remaining and that is if the block is all Zeros, this is a leading Zero Compression.

Example:

1234:0000:1234:0000:1234:0000:1234:0234

colud be written as:

HTH

Mohamed Sobair

Community Member

## Re: ipv6 address short form

Hi,

In your statement, 'one or more' represents 'one or more 16-bit group'

i.e.

0000 can be represented as :: , and

0000:0000 can also be represented as ::

See below for a brief explanation :

For eg. conside the below two addresses,

1080:0000:0000:0000:0008:0800:200C:417A

0000:0000:0000:0000:0000:0000:0A00:0001

In the above addresses, we do not need to write the leading zeros in each group of digits; for example, we can write

1080:0:0:0:8:800:200C:417A

0:0:0:0:0:0:A00:1

A further simplification is represented by the symbol ::, which replaces a series of zeros. This method replaces zeros only when they fill a complete 16-bit group, and the double colon can be used only once in any given address.By applying this shortcut, the two preceding addresses become

1080::8:800:200C:417A

::A00:1

We make the assumption that the IPv6 address has a fixed length so that we can compute how many zeros have been omitted. This shortcut can be applied either to the center of the address (as in the case of the first address), or to the leading (as in the case of the second address) or trailing zeros.

In fact, the extended form of these addresses results in the following:

They can be represented in compressed form as follows: