Designing for Cisco Internetwork Solutions (DESGN, legacy) — Question 21
What is the most compact representation of the following IPv6 address?
2001:db8:0000:0000:cafe:0000:0000:1234
Answer options
- A. 2001:db8::cafe::1234
- B. 2001:db8::cafe:0000:0000:1234
- C. 2001:db8:0:0:cafe::1234
- D. 2001:db8::cafe:0:1234
Correct answer: C
Explanation
The correct answer is C, as it uses the double colon to replace the longest sequence of consecutive zeros, while maintaining the correct structure of the address. Option A is invalid due to having two double colons, which is not permitted in IPv6 notation. Option B does not fully compress the zeros, and option D incorrectly compresses the address, losing necessary information.