Chapters0/30 ▾
Chapter 2 · Lesson 4 of 5
IPv6: shortening, address types, SLAAC and NAT64
1 min read
An IPv6 address is 128 bits written as eight groups of hex. Two rules shorten it: drop leading zeros in any group, and replace one run of all-zero groups with a double colon. The double colon may appear only once, because two of them would leave the reader unable to tell how many zeros belong on each side.
- fe80::/10 is link-local: every interface creates one, and it is valid only on that link.
- fc00::/7 is unique local, the rough IPv6 counterpart of RFC 1918 space.
- ff00::/8 is multicast; global unicast addresses (2000::/3) are routable, while 2001:db8::/32 is reserved for documentation examples.
With SLAAC, a host learns a /64 prefix from a Router Advertisement and builds its own interface ID. Modified EUI-64 splits the MAC, inserts FFFE in the middle and flips the seventh bit of the first byte.
Example: MAC 00:0C:29:AB:CD:EF becomes 020C:29FF:FEAB:CDEF, written 20c:29ff:feab:cdef. To let IPv6-only clients reach an IPv4-only service, use NAT64 with DNS64; tunnels such as 6in4 only carry IPv6 between IPv6 speakers.
Check yourself
1. A router advertises the prefix 2001:db8:1:1::/64 on a segment, and a host whose MAC address is 00:1A:2B:3C:4D:5E builds its address with SLAAC using a modified EUI-64 interface identifier. Which address does the host form?
2. Which of the following is NOT a valid way to write the IPv6 address 2001:0db8:0000:0000:00a3:0000:0000:1f4e?
Facts checked 2026-11-16 · Sources: CompTIA Network+ certification overview, RFC 1918: Address Allocation for Private Internets, RFC 4291: IP Version 6 Addressing Architecture
CompTIA Network+ cheat sheet: every key fact on one page →