LX0-104 · Question #57
Which of the following is a valid IPv6 address?
The correct answer is A. 2001:db8:3241::1. A valid IPv6 address consists of eight groups of four hexadecimal digits, separated by colons, with rules for zero compression. Option A correctly demonstrates this format, including the use of :: for a single block of consecutive zeros.
Question
Options
- A2001:db8:3241::1
- B2001::db8:4581::1
- C2001:db8:0g41::1
- D2001%db8%9990%%1
- E2001.db8.819f..1
How the community answered
(39 responses)- A90% (35)
- C3% (1)
- D5% (2)
- E3% (1)
Why each option
A valid IPv6 address consists of eight groups of four hexadecimal digits, separated by colons, with rules for zero compression. Option A correctly demonstrates this format, including the use of `::` for a single block of consecutive zeros.
`2001:db8:3241::1` is a valid IPv6 address because it uses correct hexadecimal digits for its segments and employs the `::` notation correctly to represent a single contiguous block of zeros.
`2001::db8:4581::1` is invalid because the `::` (zero compression) notation can only be used once in an IPv6 address to represent a single block of consecutive zero-value 16-bit segments.
`2001:db8:0g41::1` is invalid because it contains the character `g`, which is not a valid hexadecimal digit (0-9, a-f) required for IPv6 addresses.
`2001%db8%9990%%1` uses percent signs (`%`) as separators instead of colons (`:`), which is incorrect for standard IPv6 address notation.
`2001.db8.819f..1` uses dots (`.`) as separators, which is characteristic of IPv4 addresses, not IPv6 addresses.
Concept tested: IPv6 address format and syntax rules
Source: https://www.rfc-editor.org/rfc/rfc4291.html#section-2.2
Topics
Community Discussion
No community discussion yet for this question.