Network Fundamentals // Lesson 05

IPv6
fundamentals.

IPv6 solves the address-space limitations of IPv4 and introduces a much larger 128-bit address space. In this lesson you'll learn how IPv6 addresses are written, shortened and categorised, plus the basic ideas behind link-local addressing and neighbour discovery.

📖 Beginner ⏱ About 15 minutes ✓ Quiz included CCNA 200-301
01 // Structure

IPv6 addresses are 128 bits long

IPv6 uses hexadecimal notation instead of dotted decimal. An address is normally written as eight groups of four hexadecimal digits, separated by colons.

2001:0db8:1234:5678:abcd:ef01:2345:6789
2001 16 bits
0db8 16 bits
1234 16 bits
5678 16 bits
abcd 16 bits
ef01 16 bits
2345 16 bits
6789 16 bits
Eight groups × 16 bits = 128 bits.
02 // Hexadecimal

IPv6 uses base 16

Hexadecimal uses the symbols 0–9 and A–F. Each hexadecimal digit represents four binary bits, which makes long binary values much easier to write.

Decimal 10 = A

Decimal 15 = F

Binary 1111 = F

Binary 1010 = A

03 // Shortening addresses

IPv6 addresses can be compressed

IPv6 provides two important rules for shortening addresses.

RULE 01 // REMOVE LEADING ZEROS

Leading zeros inside each 16-bit group can be removed.

2001:0db8:0000:0001:0000:0000:0000:0001

becomes:

2001:db8:0:1:0:0:0:1
RULE 02 // COMPRESS ONE RUN OF ZEROS

One consecutive run of all-zero groups can be replaced with ::.

2001:db8:0:1:0:0:0:1

becomes:

2001:db8:0:1::1
Important: :: can normally appear only once in a compressed IPv6 address, otherwise the missing number of zero groups would be ambiguous.
04 // Address types

IPv6 addresses you'll recognise

2000::/3

Global Unicast

Globally routable IPv6 addresses used for communication across IPv6 networks and the Internet.

FE80::/10

Link-Local

Used for communication on the local link. IPv6 interfaces normally have a link-local address even when they also have a global address.

FF00::/8

Multicast

Used to send traffic to groups of IPv6 devices. IPv6 uses multicast extensively.

::1

Loopback

IPv6 loopback address, equivalent in purpose to IPv4 127.0.0.1.

::

Unspecified

Represents the absence of an IPv6 address and may be used before a device has configured an address.

FC00::/7

Unique Local

Intended for local or private-style IPv6 communication and not normally routed across the public Internet.

05 // Link-local

Link-local addresses are important

IPv6 devices use link-local addresses for communication with neighbours on the same local link.

They begin within FE80::/10 and are not forwarded by routers beyond the local link.

In IPv6, a router's link-local address can be used as a next-hop address. So don't assume every useful IPv6 gateway address must be globally routable.
06 // Prefixes

IPv6 still uses CIDR notation

Like IPv4, IPv6 uses prefix lengths to indicate how much of an address identifies the network.

/64 network prefix

A very common IPv6 LAN prefix length is /64.

2001:db8:1234:10::/64

Interface ID

With a /64, the remaining 64 bits identify the interface on that subnet.

xxxx:xxxx:xxxx:xxxx
IPv6 subnetting is conceptually similar to IPv4 — a prefix identifies the network portion — but you generally don't think in terms of conserving individual host addresses because the address space is vast.
07 // Neighbour Discovery

IPv6 doesn't use ARP

IPv6 uses Neighbour Discovery Protocol (NDP), which operates using ICMPv6, for functions that include discovering neighbouring devices and resolving Layer 2 addresses.

💻
IPv6 Host

Needs to reach a neighbour

→
📣
NDP / ICMPv6

Neighbour Solicitation

→
🖥️
Neighbour

Neighbour Advertisement

For CCNA, remember: IPv4 uses ARP; IPv6 uses NDP.
08 // Address configuration

How does a host get an IPv6 address?

IPv6 supports multiple configuration methods.

Static configuration
An administrator manually configures the address and prefix.

SLAAC
Stateless Address Autoconfiguration allows a host to build an address using information advertised by a router.

DHCPv6
DHCPv6 can provide IPv6 configuration information to clients.

09 // Check your knowledge

Quick quiz

1. How many bits are in an IPv6 address?

IPv6 addresses are 128 bits long.

2. Which prefix identifies IPv6 link-local addresses?

IPv6 link-local addresses come from FE80::/10.

3. Which IPv6 address is the loopback address?

::1 is the IPv6 loopback address.

4. Which protocol replaces ARP functionality in IPv6?

IPv6 uses NDP, based on ICMPv6, for neighbour discovery and address resolution functions.

5. What does :: represent inside a compressed IPv6 address?

Double-colon compression represents one sequence of one or more all-zero 16-bit groups.

6. Which IPv6 prefix length is commonly used on LAN subnets?

/64 is the standard and commonly encountered IPv6 LAN prefix length.
Score: 0 / 6
Lesson complete

Next: TCP, UDP & ports

Next we'll move up to Layer 4 and look at TCP versus UDP, port numbers, the TCP handshake, reliability and the common services you'll need to recognise for CCNA.