Soru

Zorluk: OrtaIPv6 Addressing and Deployment

An enterprise organization is assigned the IPv6 global routing prefix 2001:db8:abc::/482001:\text{db8}:\text{abc}::/48. A network engineer is configuring a dedicated /64/64 subnet for VLAN 3030 (represented as hexadecimal 00300030 in the subnet field) and needs to assign the first usable host IPv6 address in that subnet to the default gateway interface. Which of the following represents the correctly compressed IPv6 address with its prefix length for the default gateway interface?

  1. 2001:db8:abc:30::1/64Cevap
  2. B
    2001:db8:abc::30::1/64
  3. C
    2001:db8:abc:0030:0:0:0:1/64
  4. D
    fe80:db8:abc:30::1/64

Cevap

2001:db8:abc:30::1/64
The correct answer properly applies RFC 5952 IPv6 address shorthand rules. The 16-bit subnet hextet 0030 suppresses leading zeros to become 30, and the contiguous run of zero hextets in the interface ID (0000:0000:0000:0001) is compressed into a single double colon (::), yielding 2001:db8:abc:30::1/64.

Adım Adım Çözüm

1
Determine the uncompressed 128-bit IPv6 address structure.
Combining the global prefix (2001:0db8:0abc), the 16-bit subnet ID for VLAN 30 (0030), and the first host interface ID (0000:0000:0000:0001) yields 2001:0db8:0abc:0030:0000:0000:0000:0001.
A /48 global prefix allocates bits 49–64 for the subnet ID and bits 65–128 for the interface ID.
2
Suppress leading zeros in each 16-bit hextet.
0db8 becomes db8, 0abc becomes abc, 0030 becomes 30, and 0001 becomes 1. The address becomes 2001:db8:abc:30:0:0:0:1.
RFC 5952 mandates the suppression of leading zeros in every hextet.
3
Compress contiguous zero hextets.
The four consecutive zero hextets (:0:0:0:) are replaced by a single double colon (::), producing 2001:db8:abc:30::1/64.
RFC 5952 specifies replacing the longest run of consecutive zero hextets with a single '::' symbol.

Anahtar Kavram

IPv6 Address Compression Rules (RFC 5952)
Bu soruyu puanla