A network administrator is documenting a public web server's full 128-bit IPv6 address, which is written as 2001:0db8:0000:0042:0000:0000:0000:0001. To ensure consistent configuration across system records, the administrator needs to condense this address using standard zero-compression rules. Which of the following represents the correctly compressed IPv6 address according to RFC 5952 standards?
- A2001:db8::42::1
- 2001:db8:0:42::1Answer
- C2001:db8::42:0:0:0:1
- D2001:db8:0000:0042::1
Answer
2001:db8:0:42::1 is the correctly compressed IPv6 address according to RFC 5952 guidelines.
According to RFC 5952 IPv6 representation standards: 1) Leading zeros in any hexadecimal field must be removed (e.g., 0db8 becomes db8, 0042 becomes 42, 0001 becomes 1). 2) The double-colon (::) symbol must be used to compress the longest contiguous sequence of zero fields (positions 5–7). 3) Single zero fields outside the double-colon sequence must be represented as a single '0'. Therefore, 2001:db8:0:42::1 is the only valid, standard-compliant compressed form.
Step-by-Step Solution
Key Concept
IPv6 Address Compression and Canonical Representation (RFC 5952)
Estimated Time:1m 0s