Sub topic 2
Global Unicast Addresses
This chapter assumes you know IPv4 subnetting, CIDR prefix lengths, hexadecimal notation, and the roles of hosts, switches, and routers.
Global unicast addresses
A global unicast address is an IPv6 address intended to identify one interface across routed networks, including the public Internet. The global unicast range is 2000::/3. Addresses in this range usually have a global routing prefix, a site subnet field, and an interface identifier.
For example, 2001:db8:1234:0010::25/64 has a /64 network prefix. The first 64 bits identify the subnet. The remaining 64 bits identify the interface.
Link-local addresses
Every IPv6-enabled interface normally creates a link-local address from fe80::/10. A link-local address works only on the local Layer 2 link. Routers do not forward link-local traffic between links.
Hosts use link-local addresses for Neighbor Discovery, Router Advertisements, and often the default gateway. Because the same address can exist on multiple links, a zone or interface identifier may be needed when using one in commands.
Unique local addresses
Unique local addresses, or ULAs, come from fc00::/7. In deployed networks, fd00::/8 is commonly used for locally assigned prefixes. ULAs are for private routing inside an organization or connected private networks. They are not globally routed and are not a direct replacement for globally reachable addresses.
Loopback and unspecified addresses
::1 is the loopback address. It identifies the local host, similar to IPv4 127.0.0.1.
:: is the unspecified address. A host uses it when it does not yet have an address, such as while sending a first configuration request. It must not be assigned to an interface or used as a normal destination.
Multicast addresses and scopes
IPv6 has no broadcast address. Multicast sends one packet to multiple subscribed interfaces. Multicast addresses begin with ff00::/8.
The scope field indicates how far the multicast traffic can travel. For example, ff02::1 means all IPv6 nodes on the local link. ff02::2 means all IPv6 routers on the local link. Neighbor Discovery relies heavily on link-local multicast.
Planning subnets: /48 to /64
A common site allocation is a /48, such as 2001:db8:abcd::/48. Assigning /64 to each LAN leaves 16 subnet bits:
| Allocation | Result |
|---|---|
| `/48` divided into `/64` networks | 65,536 subnets |
The first subnets are 2001:db8:abcd::/64, 2001:db8:abcd:1::/64, and 2001:db8:abcd:2::/64. Keeping LANs at /64 supports standard IPv6 autoconfiguration.
Exercise
How many /64 subnets can a /48 allocation provide?
Show answer
It provides 2^(64 - 48) = 65,536 /64 subnets.