Soru

Zorluk: ZorIPv6 Addressing and Deployment

During a security compliance audit of network documentation, a systems engineer needs to standardize an abridged IPv6 address into its complete 128-bit explicit form.

What is the fully expanded, uncompressed representation of the IPv6 address 2001:db8:40::ae0:12?

Cevap: 2001:0db8:0040:0000:0000:0000:0ae0:0012 / 2001:0DB8:0040:0000:0000:0000:0AE0:0012

Cevap

2001:0db8:0040:0000:0000:0000:0ae0:0012
Expanding a compressed IPv6 address requires expanding each block to four hexadecimal digits by restoring omitted leading zeros and replacing the double colon (::) with the required number of 0000 blocks to reach a total of 8 blocks. The address 2001:db8:40::ae0:12 contains 5 explicit blocks (2001, 0db8, 0040, 0ae0, 0012), meaning the double colon represents 3 contiguous zero blocks (0000:0000:0000), producing 2001:0db8:0040:0000:0000:0000:0ae0:0012.

Adım Adım Çözüm

1
Count the explicit 16-bit fields present in the compressed address.
There are 5 explicit fields specified: '2001', 'db8', '40', 'ae0', and '12'.
An IPv6 address always consists of 8 total 16-bit fields.
2
Determine the number of missing zero fields represented by the double colon (::).
8 total fields - 5 explicit fields = 3 missing consecutive zero fields (0000:0000:0000).
The double colon symbol expands to fill all omitted 16-bit zero blocks so the address reaches exactly 8 fields.
3
Pad each explicit field with leading zeros to complete 4 hexadecimal digits per field.
'2001' remains '2001', 'db8' becomes '0db8', '40' becomes '0040', 'ae0' becomes '0ae0', and '12' becomes '0012'.
RFC 5952 zero-suppression removes leading zeros within a block, which must be restored during full expansion.
4
Assemble all 8 expanded fields separated by colons.
2001:0db8:0040:0000:0000:0000:0ae0:0012
Combining the padded explicit blocks and the expanded zero blocks yields the full 39-character 128-bit uncompressed IPv6 address.

Anahtar Kavram

IPv6 Address Uncompression and Structure Standards
Bu soruyu puanla